Band
Band: a full-bleed, full-width marketing section. The background runs edge to edge; the content sits in a centered column with the page gutter. It is what a landing page is made of: a hero, a features band, a call to action, a footer. ```tsx <Band surface="accent" spacing="lg" aria-labelledby="cta-title"> <Display as="h2" id="cta-title" size="lg">Start today</Display> </Band> ``` Unlike `Section` (a titled region inside an app page), a band carries no heading of its own: a marketing page decides its heading levels per page (one `h1`, then `h2`s), so the caller places a `Display` and names the region with `aria-labelledby`. Server-safe: no state, no effects.
packages/ui/src/components/layout/band.tsx
@marktiderman/genesis-ui/layoutimport { Band } from "@marktiderman/genesis-ui/layout";react-docgen-typescript.Band
Band: a full-bleed, full-width marketing section. The background runs edge to edge; the content sits in a centered column with the page gutter. It is what a landing page is made of: a hero, a features band, a call to action, a footer. ```tsx <Band surface="accent" spacing="lg" aria-labelledby="cta-title"> <Display as="h2" id="cta-title" size="lg">Start today</Display> </Band> ``` Unlike `Section` (a titled region inside an app page), a band carries no heading of its own: a marketing page decides its heading levels per page (one `h1`, then `h2`s), so the caller places a `Display` and names the region with `aria-labelledby`. Server-safe: no state, no effects.
| Prop | Type | Default | Description |
|---|---|---|---|
| as | enum | h2 | The element to render. `section` (default) for a region of the page, `header` / `footer` for the site's banner and footer, `div` for a band that is not a region of its own. |
| innerClassName | string | — | Classes for the inner column, after the width and gutter. |
| spacing | "none" | "sm" | "md" | "lg" | null | — | |
| surface | "base" | "muted" | "accent" | "inverse" | null | — | |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |
| width | enum | lg | The inner column's width (Container's named widths). Default `lg`. |
Display
Display: a heading in the marketing type scale (`displayVariants`). ```tsx <Display as="h1" size="xl">Train with people who know your name</Display> ```
| Prop | Type | Default | Description |
|---|---|---|---|
| as | enum | h2 | The heading level: document structure, not a size. Default `h2`. |
| size | "sm" | "md" | "lg" | "xl" | null | — | |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |
BandLead
| Prop | Type | Default | Description |
|---|---|---|---|
| testID | string | — | |
| tone | "muted" | "inherit" | null | — |