Sidebar Nav
A vertical list of sections, with a collapsed icon rail for narrow widths.
Live preview · click to try it
Variants
2 named variants. Layer names match the names below.
ExpandedSidebar Nav / Expanded
CollapsedSidebar Nav / Collapsed
States
Sidebar Nav / Default
Sidebar Nav / Active
Sidebar Nav / Hover
Sidebar Nav / Focus
Sidebar Nav / Disabled
Sidebar Nav / Loading
Sidebar Nav / Error
Usage
Do
- A product or docs shell with several sections on every page.
Don't
- A marketing site with a few pages; use the Navbar.
Properties
| Property | Type or options | Default |
|---|---|---|
| Variant | Expanded · Collapsed | Expanded |
| Items | Array of links | Library sections |
| Active | Item key | Components |
Styles it uses
Surface/PageSurface/TileAccent/SoftInk/PrimaryInk/MutedLine/FaintState/Focus
Text: Nav · Label
Accessibility
- The active item uses aria-current.
- Collapsed items keep an accessible name.
- Targets are at least 44px tall, with a 3px State/Focus ring.