Skip to book
Tarva BXD · LumosIndex › Layout & Shell › Sidebar
1920 × 1080 · Landscape
Lumos Index › Layout & Shell › Sidebar nav + grouped nav

Layout & Shell · Sidebar

The navigation rail.

The persistent rail that holds a product's primary navigation — grouped sections, one active page, optional counts — that collapses from a 240-pixel column to a 60-pixel icon rail without losing its place.

★Expandedvariant="default" · 240px
1Brand· mark + wordmark L Lumos
5Footer· toggle + handle Theme

Sidebar variant="default" renders an <aside> + inner <nav> (downgraded to <div> inside AppShell via asLandmark="auto"). Width is --shell-sidebar-w-expanded (240px). Active item carries aria-current="page"; the count badge is a soft Badge.

★Collapsedvariant="collapsed" · 60px

At --shell-sidebar-w-collapsed (60px) labels go sr-only, counts become a brand dot at the icon corner, and each item gets a right-side Tooltip on hover or focus. useSidebar() drives the toggle; [ flips it when handleCollapseHotkey is set.

1Sidebar.Brandmark + wordmark · sticky top · border-b
2Sidebar.Grouplabel · font-display italic · sr-only collapsed
3Sidebar.Itemicon · label · badge · active strip
4Sidebar.SubItemnested · indented under its Item
5Sidebar.Footertheme toggle child + collapse handle
6collapsed railvariant="collapsed" · icon-only · tooltips
Composes
Sidebar Sidebar.Brand Sidebar.Group Sidebar.Item Sidebar.SubItem Sidebar.Footer Badge Tooltip ScrollArea
When to reach for it

Reach for Sidebar for a product's primary navigation rail — it owns the <aside> + <nav> landmarks, grouped sections, the active aria-current state, and the persisted collapse. Use variant="default" for the standard collapsible rail, collapsed for an icon-first rail, focus for a frozen 60px rail on live-session screens, and mobile-drawer inside a Sheet. Inside AppShell the landmarks downgrade automatically.


Lumos brand book slide: Sidebar
Rotate your phone for a larger view. Tap the slide to open it full size and zoom.
8.5 × 11 · Portrait