Section
A titled block of a page, composed from Card: eyebrow, title at a heading level, description, top-end action, footer; card, bare or dashed (create tile) surfaces and sm or md padding.
Example
Deployments
Builds that reached production.
42
Create a project
Start from a template or an empty repo.
section-demo.tsxCopy code
Installation
Copy code
Brings alongcard
Usage
ImportCopy code
API reference
Section
| Prop | Type | Default |
|---|---|---|
titlerequired | ReactNode | – |
eyebrow | ReactNode | – |
description | ReactNode | – |
actionA control at the top end of the header, like a Button or a menu trigger. | ReactNode | – |
headingLevel | CardHeadingLevel | 2 |
surface`card` (default), `none` for a titled group without a box, `dashed` for a "create" tile. | CardSurface | "card" |
padding`sm` tightens the inset for dense dashboards. Ignored without a surface. | "sm" | "md" | "md" |
footer | ReactNode | – |
titleId | string | – |
Also takes Card except title, surface.
Other exports
type SectionPropsAccessibility
- A section named by its title, which is an h2 unless headingLevel says otherwise.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.