Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/layout
import { Section } from "@marktiderman/genesis-ui/layout";
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
title*ReactNode—Section heading. Required — an untitled region is just a `Stack`.
actionsReactNode—Optional trailing controls for this region (a button, a menu, a filter).
descriptionReactNode—Optional supporting copy under the heading.
headingClassNamestring—Escape hatch for the heading's own classes (type scale, color).
levelenum2Heading 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.
testIDstring—Stable test/automation selector (emitted as `data-testid`).