Blocks
Testimonial
Quotes for social proof and trust
Installation
npx shadcn@latest add https://payload-bricks.bblank.dev/r/testimonial-block.jsonUsage
import { Testimonial } from "@/blocks/testimonial/testimonial-config"
import type { CollectionConfig } from "payload"
export const Pages: CollectionConfig<"pages"> = {
slug: "pages",
fields: [
{
name: "layout",
type: "blocks",
blocks: [Testimonial],
required: true,
},
],
}Block structure
| name | type | |
|---|---|---|
intro | group | intro field |
items | array | |
image | upload | media field, inside items |
name | text | inside items |
shortDescription | text | inside items |
testimonial | rich text | inside items |