Skip to content

FAQ columns

FAQ columns · sample rowOpen ↗

Renders FAQColumnsBlock from @bison-lab/ui. The eyebrow, title and description are the trio every marketing band opens with; they are top-level fields rather than a group so the heading is the first thing an editor sees.

Answers are plain text on purpose. A Lexical answer would pull @payloadcms/richtext-lexical into the ./react entry every consumer loads. Prose with links and lists belongs in a rich text block.

The call to action under the intro is hidden when its link is empty.

payload.config.ts / collections
import { FaqColumnsBlock } from "@bison-lab/payload-blocks";
// In the collection's `blocks` array:
FaqColumnsBlock
blocks/registry.ts
import { FaqColumnsBlockRenderer } from "@bison-lab/payload-blocks/react";
// In the site's registry:
faqColumns: FaqColumnsBlockRenderer,
FieldTypeNotes
eyebrowtextSmall label above the heading. Leave empty to hide the row.
title *text
descriptiontextarea
items *arrayAt least 1 row. Opens with 1 empty row; the admin field will not remove below that.
items[].question *text
items[].answer *textarea
ctagroupLabelled “Call to action”. Shown under the intro. Leave the link empty to hide it.
cta.titletextLead-in line, e.g. "Still have questions?".
cta.linkTexttext
cta.typeradioLabelled “Goes to”. One of page, external. Default "page".
cta.pagerelationshipRelationship to pages.
cta.hreftextLabelled “URL”. A full URL ("https://example.com"), "mailto:" or "tel:", or a site path ("/contact").
cta.newTabcheckboxLabelled “Open in a new tab”. Default false.
stickycheckboxPin the intro column while the answers scroll. Default true.
typeselectOne of single, multiple. Default "single".
collapsiblecheckboxAllow the open answer to be closed again. Single mode only. Default true.

* required.