Integration Split
A two-column section pairing a featured-mark logo cluster with a heading, subtext, and CTA.
import type { Block } from 'payload'import { integrationFeaturedMark, integrationFields } from '@/blocks/shared/integrationFields'import { linkGroup } from '@/fields/linkGroup'export const IntegrationSplit: Block = { slug: 'integrationSplit', interfaceName: 'IntegrationSplitBlock', fields: [ // Shared integration core (heading + subtext + integrations). Edit the shared // shape in @/blocks/shared/integrationFields to update every integration variant. ...integrationFields, // Variant-specific: a featured center brand mark and a single CTA beside the cluster. integrationFeaturedMark, linkGroup({ overrides: { admin: { initCollapsed: true, }, maxRows: 1, }, }), ], labels: { plural: 'Integration Split Blocks', singular: 'Integration Split', },}import React from 'react'import type { IntegrationSplitBlock as IntegrationSplitBlockData } from '@/payload-types'import { CMSLink } from '@/components/Link'import { Media } from '@/components/Media'import { cn } from '@/utilities/ui'type Props = IntegrationSplitBlockData & { id?: string className?: string disableInnerContainer?: boolean}export const IntegrationSplitBlock: React.FC<Props> = ({ className, disableInnerContainer, featuredLogo, heading, id, integrations, links, subtext,}) => { const items = integrations ?? [] const mid = Math.ceil(items.length / 2) const before = items.slice(0, mid) const after = items.slice(mid) return ( <section className={cn('container', className)} id={id ? `block-${id}` : undefined}> <div className="overflow-hidden rounded-frame border border-border/70 bg-card/35 px-6 py-12 sm:px-8 lg:px-12 lg:py-16"> <div className={cn('grid items-center gap-10 sm:grid-cols-2', { 'mx-auto max-w-5xl': !disableInnerContainer, })} > <div className="mx-auto flex max-w-sm flex-wrap items-center justify-center gap-2.5 [mask-image:radial-gradient(ellipse_75%_75%_at_50%_50%,#000_55%,transparent_100%)]"> {before.map((item, index) => ( <div className="flex size-16 items-center justify-center rounded-2xl border border-border/70 bg-background" key={item.id ?? `${item.name}-${index}`} > <Media resource={item.logo} imgClassName="size-8 w-auto object-contain" /> </div> ))} {featuredLogo ? ( <div className="flex size-16 items-center justify-center rounded-2xl border border-foreground/25 bg-card shadow-lg"> <Media resource={featuredLogo} imgClassName="size-9 w-auto object-contain" /> </div> ) : null} {after.map((item, index) => ( <div className="flex size-16 items-center justify-center rounded-2xl border border-border/70 bg-background" key={item.id ?? `after-${item.name}-${index}`} > <Media resource={item.logo} imgClassName="size-8 w-auto object-contain" /> </div> ))} </div> <div className="flex flex-col gap-5 text-center sm:text-left"> <h2 className="text-balance text-2xl font-semibold tracking-heading text-foreground sm:text-3xl"> {heading} </h2> {subtext ? ( <p className="text-pretty text-sm text-muted-foreground sm:text-base">{subtext}</p> ) : null} {links && links.length > 0 ? ( <div className="flex flex-wrap items-center justify-center gap-3 sm:justify-start"> {links.map(({ link }, index) => ( <CMSLink appearance={link.appearance === 'outline' ? 'outline' : 'default'} key={index} {...link} /> ))} </div> ) : null} </div> </div> </div> </section> )}import type { Field } from 'payload'/** * Shared field core for the Integration block family. * * Every integration variant (integration-grid, integration-cluster, * integration-split, integration-connect, integration-orbit, integration-list, * integration-marquee, integration-testimonial, …) spreads these fields first * and then appends its own variant-specific shape (for example the cluster * variants add a featured center mark, and the testimonial variant adds a * quote). Editing the shared heading/integrations shape here updates every * installed integration block at once, so the family never drifts * field-by-field across a repo. * * Each integration is an editable Media upload plus an accessible name, an * optional supporting description, and an optional link, so editors manage the * wall of partner/tool logos from the admin instead of shipping hardcoded * brand SVGs. Logo-only variants simply ignore the per-item description/href. * * Installed once per repo at `src/blocks/shared/integrationFields.ts`; re-running * `payload-components add integration-*` never overwrites a copy you have already edited. */export const integrationFields: Field[] = [ { name: 'heading', type: 'text', required: true, }, { name: 'subtext', type: 'textarea', }, { name: 'integrations', type: 'array', required: true, minRows: 2, maxRows: 12, admin: { initCollapsed: true, }, fields: [ { name: 'logo', type: 'upload', relationTo: 'media', required: true, }, { name: 'name', type: 'text', required: true, }, { name: 'description', type: 'textarea', }, { name: 'href', type: 'text', }, ], },]/** * Optional center brand mark, spread by the variants that arrange the * integration logos around a focal point (cluster, split, connect, orbit, * marquee). Left empty, the variant renders without a center mark. */export const integrationFeaturedMark: Field = { name: 'featuredLogo', type: 'upload', relationTo: 'media', admin: { description: 'Optional center brand mark shown at the focal point of the integration layout.', },}Installation
npx payload-components add integration-splitCopy the files straight from the registry, then wire the Payload fragments by hand:
pnpm dlx shadcn@latest add https://www.payload-components.xyz/r/integration-split.jsonWhat it installs
Copies 3 source files into your project:
src/blocks/shared/integrationFields.tssharedsrc/blocks/IntegrationSplit/config.tssrc/blocks/IntegrationSplit/Component.tsx
…and makes 4 edits to wire the block into your project:
| Registers the block | src/collections/Pages/index.ts |
| Maps the renderer | src/blocks/RenderBlocks.tsx |
| Regenerates types | src/payload-types.ts |
| Regenerates the admin import map | src/app/(payload)/admin/importMap.js |
integrationFields.ts is the shared field core for this family — every variant composes it. Editing it updates each installed block at once, and re-running an install never overwrites a copy you have changed.Re-running the install converges: it detects existing wiring, skips it, and records install state in .payload-components/state.json.
Content model
heading, subtext, and integrations come from the shared integrationFields base. This variant
adds an optional featuredLogo center mark and a single CTA links group beside the cluster.
Prop
Type
Each item in integrations carries:
Prop
Type
Usage
IntegrationSplit block to its layout.RenderBlocks on the frontend, fully typed — no extra wiring.Requirements
- Target
- payload-website-starter
- Payload
- v3
- Next.js
- 15 / 16
- shadcn UI
- none
Your project must already expose components.json, src/payload.config.ts, src/blocks/RenderBlocks.tsx, src/collections/Pages/index.ts — the surfaces payload-components add patches. The CLI verifies this against the support matrix before touching anything.
In this family
integration-gridintegration-clusterintegration-splitcurrentintegration-connectintegration-orbitintegration-listintegration-marqueeintegration-testimonial