Blocks
CTA
Call to action
Installation
npx shadcn@latest add https://payload-bricks.bblank.dev/r/cta-block.jsonUsage
import { CTA } from "@/blocks/cta/cta-config"
import type { CollectionConfig } from "payload"
export const Pages: CollectionConfig<"pages"> = {
slug: "pages",
fields: [
{
name: "layout",
type: "blocks",
blocks: [CTA],
required: true,
},
],
}Block structure
| name | type | |
|---|---|---|
intro | group | intro field |