Page blocksContact

Contact Channels

A form-free contact section listing validated email, phone, and URL channels in a card grid.

v0.2.0Page blockpayload-website-starter

import type { Block } from 'payload'

import { contactChannelFields, contactFields } from '@/blocks/shared/contactFields'

export const ContactChannels: Block = {
  slug: 'contactChannels',
  // Existing apps must migrate stored data before adopting this identifier:
  // https://www.payload-components.xyz/docs/registry#installed-source-and-migrations

Installation

npx payload-components add contact-channels
Manualnpx shadcn@latest add https://www.payload-components.xyz/r/contact-channels.json

The registry copy brings the source files only; register the block and map its renderer yourself, or let the CLI command above do both.

Usage

Editors add Contact Channels from a Page layout's block picker. This is the form they fill.

Contact Channels

Block
Eyebrow
Contact
Title
Reach the team that owns the answer.
Description

Every channel below is monitored by the team named on it — nothing routes through a shared triage inbox.

Channels
  1. 01
    Product and supportImplementation questions and existing workspaces.
  2. 02
    SalesPricing, procurement, and security review.
  3. 03
    PhoneWeekdays, 9am to 6pm Eastern.
  4. 04
    Status pageLive incident history and uptime.
  5. 05
    DocumentationGuides, API reference, and changelog.
  6. 06
    SecurityCoordinated vulnerability disclosure.
Footnote
We answer support email within one business day.
  1. 1Add the block to a Page from the layout block picker.
  2. 2Fill the fields as above.
  3. 3Publish. RenderBlocks renders the block, fully typed.

Content model

eyebrow, title, description, and the per-channel shape come from the shared contact base at src/blocks/shared/contactFields.ts, so a channel validates and renders the same way in every contact variant. Use this block when the form lives elsewhere — a dedicated contact route, a Payload form-builder page, or a scheduling tool — and the page only needs to route people.

Each channel's value is validated on save: an email must parse as an address, a phone must be 7–15 digits, and a url must be an HTTPS URL or a same-origin path. A value that would not resolve to a safe href is rejected in the admin, and the renderer falls back to plain text rather than emitting a dead link.

Prop

Type

Each item in channels carries:

Prop

Type

What it installs

Composition

How the block hangs together in Payload

Pageslayout[]ContactChannelseyebrowtitledescriptionchannels[]labeltypevaluedescriptionfootnote
Fields
src/blocks/ContactChannels/config.ts
Render
src/blocks/ContactChannels/Component.tsx

Files

Copies 5 files into your project. Files tagged shared are reused across the family.

safeUrls.tsshared
contactUrls.tsshared
contactFields.tsshared
config.ts
Component.tsx

Edits

Wires ContactChannels into the project in 4 places.

  • Registers the blocksrc/collections/Pages/index.ts
  • Maps the renderersrc/blocks/RenderBlocks.tsx
  • Regenerates typessrc/payload-types.ts
  • Regenerates the admin import mapsrc/app/(payload)/admin/importMap.js
safeUrls.ts and contactUrls.ts and contactFields.ts are shared source for this component family. Components that install the same path reuse your local copy, and re-running an install never overwrites a copy you have changed.

Re-running the install detects existing source and wiring, then records install state in .payload-components/state.json.

Requirements

Target
payload-website-starter, payload-blocks-app
Payload
v3 (3.25 or newer) / v4 (experimental)
Next.js
15 / 16 with v316 (16.4 or newer) with v4
shadcn UI
badge

Payload v4 support is experimental: it needs Next.js 16 (16.4 or newer) and Node.js 24.22.1 or newer. Payload v3 (3.25 or newer) stays fully supported.

Your project must already expose components.json, src/payload.config.ts, the surfaces patched by payload-components add. The CLI verifies this against the support matrix before touching anything.

In this family

Contact Routing Form
A contact section with validated channels and a fixed accessible form that posts to a same-origin endpoint.
Contact ChannelsCurrent
A form-free contact section: heading, supporting copy, and a grid of validated email, phone, and URL channels.
Contact Form Basic
An accessible contact form with inline validation and confirmed submission feedback from your own endpoint.