Blocks
Feature
A list of product features
Installation
npx shadcn@latest add https://payload-bricks.bblank.dev/r/feature-block.jsonUsage
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
| name | type | |
|---|---|---|
intro | group | intro field |
items | array | |
headline | group | headline field, inside items |
richText | rich text | rich text field, inside items |
link | group | button field, inside items |
icon | group | icon field, inside items |