Skip to content

Simple hero

Simple hero · sample rowOpen ↗

Renders HeroSimple from @bison-lab/ui. One centered column on the page surface: an optional eyebrow, the heading as the page’s <h1> (larger at wider breakpoints), a muted body with a capped measure, and one outline button. There is no image and no motion. A Block Settings background replaces the page surface.

It is built on the same heroFields() as the other heroes, so the copy has the same names to an editor; the calls to action are capped at one. The button is a picked link: a published page or, for an external destination, a URL. A link to a page that is not published renders its label as text. In the Block library it is a hero: Anchor only, and Hidden is refused.

payload.config.ts / collections
import { HeroSimpleBlock } from "@bison-lab/payload-blocks";
// In the collection's `blocks` array:
HeroSimpleBlock
blocks/registry.ts
import { HeroSimpleBlockRenderer } from "@bison-lab/payload-blocks/react";
// In the site's registry:
heroSimple: HeroSimpleBlockRenderer,
FieldTypeNotes
eyebrowtextSmall label above the heading. Optional.
heading *text
bodytextarea
linksarrayUp to 1 row.
links[].typeradioLabelled “Link”. One of page, external. Default "page".
links[].page *relationshipRelationship to pages.
links[].href *textLabelled “URL”. A full URL ("https://example.com"), "mailto:" or "tel:", or a site path ("/contact").
links[].label *textLabelled “Label”.
links[].newTabcheckboxLabelled “Open in a new tab”. Default false.
settingsgroupLabelled “Block Settings”.
settings.backgroundselectLabelled “Background”. The surface this section sits on. Page is the plain page background. One of page, card, muted, color, gradient. Default "page".
settings.backgroundColortextLabelled “Color”.
settings.backgroundColorDarktextLabelled “Dark mode color”.
settings.gradientTotextLabelled “Gradient end”.
settings.gradientToDarktextLabelled “Dark mode gradient end”.
settings.gradientDirectiontextLabelled “Gradient direction”.
settings.spacingselectLabelled “Spacing”. The air above and below this section. Default is the block's own padding; Compact and Spacious replace it. This is the band, not the site-wide spacing in Theme → Appearance. One of compact, default, spacious. Default "default".
settings.anchortextLabelled “Anchor”. In-page links can target this section. Leave blank for none.
settings.hiddencheckboxLabelled “Hidden”. The section stays in the editor and is left off the page. Default false.

* required.