Sidebar

Markdown

App navigation in groups, marking the current page.

Use it for
Persistent app navigation with groups and the current page.
Not for
Detail about a selected item. Try Sidecar.

Sidebar preview

Loading example…

Installation

npm install @stackunseen/ui
import { Sidebar } from '@stackunseen/ui';
Styles: @stackunseen/ui/styles.css

Usage and props

Keep the labels visible. Put Sidebar inside a Sidecar for a mobile drawer; Sidebar itself doesn’t open or close.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

Sidebar: label?/as? · Group: label? · Link: href/current?/disabled?/icon?/badge?
How state and callbacks work
All props

Loading…

For your coding agent

Give the agent this page instead of a screenshot. The prompt wraps the page with the install and import lines and the rule that your server, not a click, completes an action.

Contract
Sidebar: label?/as? · Group: label? · Link: href/current?/disabled?/icon?/badge?
Keeps honest
Keep the labels visible. Put Sidebar inside a Sidecar for a mobile drawer; Sidebar itself doesn’t open or close.
MCP
read_component "Sidebar" on the docs endpoint
Open the Markdown file

Keyboard and customization

Keyboard

Tab visits available links in document order. Current links use aria-current; disabled destinations are removed from the tab sequence.

Customization

Change shared colors, spacing, corners and icons with the theme. Use the component's supported props to adapt its content and layout. Customization guide and Theme Studio