Section
A group of rows on one surface, under a header and over a footer note, with dividers between rows.
Stability: experimental
Props
| Prop | Type | Default | Means |
|---|---|---|---|
title | string | The header, shown in small capitals. | |
footer | string | A note under the group. | |
action | string | A small text button at the end of the header, such as Edit. | |
onAction | () => void | Runs when the action is pressed. |
Children
The rows, usually ListRow, ToggleRow or Checkbox parts.
States
| State | Looks like |
|---|---|
default | Rows sit on one rounded surface, a line between each. |
Accessibility
| role | none; the title is a heading |
| name | The title. |
| focus | Only the action and the rows inside take focus. |
Theme tokens
color.surface color.border color.muted color.primary space.2 space.4 radius.lg text.caption
Example
<Section title="Account"><ListRow title="Email" value="ada@example.com" /></Section>