NavSection
layoutsA labelled group of sidebar NavItems with consistent spacing; at icon-rail width the label hides and a hairline divider separates the groups.
Workspace sidebar
An unlabelled top group, then label="Library" and label="System"; each labelled group is a role="group" named by its label.
Full width and icon rail
The same groups in a sidebar query container at 15rem and at 4.5rem: labels give way to dividers, badges to dots.
Long labels and long groups
A long label wraps instead of overflowing; a long group scrolls with its sidebar; an empty group keeps only its heading.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Optional section heading; rendered uppercase + mono. Omit for an unlabeled group (still gets the group spacing + rail divider). |
children | Snippet | — | |
class | string | '' | |
style | string | — |