Section header
v0.64.0, changelogA section heading at page level (16 px bold, outside cards) or surface level (14 px medium, inside one), with an optional count, a line and actions; `as` sets the heading level.
API reference
Generated from the types. Every part also takes className.
SectionHeader
- titlerequired
ReactNode- variant
"page" | "surface" = "page"page: a section of the page, outside any card (16 px bold).surface: inside a card, a sheet or a panel (14 px medium).- as
"h2" | "h3" | "h4"The heading level: h2 forpageand h3 forsurfaceby default. Set it so the page's outline skips no level; the look stays the same.- count
numberHow many items the section holds, after the title in muted text: full, with grouping (formatCount).- locale
stringThe locale the count is written in (English by default).- description
ReactNodeOne line under the title.- actions
ReactNodeButtons for this section ("View all", "Add"):size="sm"in asurfaceheader.- id
stringThe heading's id, for a section'saria-labelledby.