Section
Section — a titled region of a page: heading, optional description, optional trailing actions, and the content itself. ```tsx <Section title="Team members" description="Everyone with access to this workspace." actions={<Button>Invite</Button>} > <Grid cols={3}>{…}</Grid> </Section> ``` Renders a real `<section>` named by its own heading through `aria-labelledby`, which is what turns it into a navigable landmark — an unnamed `<section>` is announced as nothing at all, so the markup that *looks* the most semantic is the markup that most often isn't. The header collapses to a column below `sm`, so a long title and an action button never fight over the same line on a phone.
packages/ui/src/components/layout/section.tsx
@marktiderman/genesis-ui/layoutimport { Section } from "@marktiderman/genesis-ui/layout";react-docgen-typescript.Section
Section — a titled region of a page: heading, optional description, optional trailing actions, and the content itself. ```tsx <Section title="Team members" description="Everyone with access to this workspace." actions={<Button>Invite</Button>} > <Grid cols={3}>{…}</Grid> </Section> ``` Renders a real `<section>` named by its own heading through `aria-labelledby`, which is what turns it into a navigable landmark — an unnamed `<section>` is announced as nothing at all, so the markup that *looks* the most semantic is the markup that most often isn't. The header collapses to a column below `sm`, so a long title and an action button never fight over the same line on a phone.
| Prop | Type | Default | Description |
|---|---|---|---|
| title* | ReactNode | — | Section heading. Required — an untitled region is just a `Stack`. |
| actions | ReactNode | — | Optional trailing controls for this region (a button, a menu, a filter). |
| description | ReactNode | — | Optional supporting copy under the heading. |
| headingClassName | string | — | Escape hatch for the heading's own classes (type scale, color). |
| level | enum | 2 | Heading level. Default `2`, i.e. a top-level region of a page whose `<h1>` is the page title. Drop to `3`/`4` when nesting so the outline stays legal — heading level is document structure, not a font size. |
| testID | string | — | Stable test/automation selector (emitted as `data-testid`). |