Navigation

Sidebar

Build a collapsible sidebar that opens as an overlay panel on mobile.

Basic usage

Give the root a height and place one Panel followed by Main. On desktop, resizable enables resizing. Below 48 rem, use the toggle to open the panel.

Overview

Keep track of your team’s recent activity.

API

Key props and defaults.

PropValues and behaviorDefault
Root.resizablebooleanfalse
Root.defaultWidth / minWidth / maxWidthnumber (px)256 / 216 / 360
Root.compactWidthnumber (px)64
Root.collapsed / onCollapsedChangeboolean / (collapsed) => void—
Root.mobileOpen / onMobileOpenChangeboolean / (open) => void—