This project is still a work in progress.

payload bricks
Blocks

Hero

Used to communicate key value proposition

Installation

npx shadcn@latest add https://payload-bricks.bblank.dev/r/hero-block.json

Usage

collections/Pages.ts
import type { CollectionConfig } from "payload"
import { Hero } from "@/blocks/hero/hero-config"

export const Pages: CollectionConfig<"pages"> = {
  slug: "pages",
  fields: [
    {
      name: "layout",
      type: "blocks",
      blocks: [Hero],
      required: true,
    },
  ],
}

Block structure

On this page