Skip to content

Sidebar

An app's main navigation. Persistent and collapsible to an icon rail from md up; a sheet on a phone.

Sourcecomponents/sidebar.tsx

Usage

When to use

Use when

An app's main navigation: persistent from md, a sheet below. Mark the current page with isActive. size="sm" on SidebarProvider for long, dense navs (docs, settings); rows stay 44px in the phone sheet. render={<NextLink href="…" />} on SidebarMenuButton routes with your framework

Don’t use when

Marketing sites; more than about a dozen top-level items (group them)