Duolith docs

Section

A group of rows on one surface, under a header and over a footer note, with dividers between rows.

Stability: experimental

Props

PropTypeDefaultMeans
titlestringThe header, shown in small capitals.
footerstringA note under the group.
actionstringA small text button at the end of the header, such as Edit.
onAction() => voidRuns when the action is pressed.

Children

The rows, usually ListRow, ToggleRow or Checkbox parts.

States

StateLooks like
defaultRows sit on one rounded surface, a line between each.

Accessibility

rolenone; the title is a heading
nameThe title.
focusOnly 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>