This project is still a work in progress.

payload bricks
Blocks

Feature

A list of product features

Installation

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

Usage

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

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

Block structure

nametype
introgroupintro field
itemsarray
headlinegroupheadline field, inside items
richTextrich textrich text field, inside items
linkgroupbutton field, inside items
icongroupicon field, inside items

On this page