On this page

Sidebar

When to use Sidebar, when to use something else, and tokens.

Draft. Ported from the shadcn-vue Sidebar and restyled with Beehexa tokens. Not yet approved; the API may still change.

The side navigation of an app: groups of links that collapse to icons or open as a drawer on small screens.

When to use

  • The main navigation of an app with more than a handful of sections.

When not to use

Tokens

Part Tokens
Surface color.surface.page with a 1 px color.border line (Layout › App frame)
Items size.control.default, space.item.x, radius.item; hover color.background.neutral.subtle.hover
Current page color.background.selected and the yellow bar
Phones a drawer (Sheet) on color.surface.overlay
Layer z-index.navigation