Sidebar
Collapsible app navigation shell with mobile Sheet.
shadcn/ui · new-york-v4 · synced Aug 29, 2026shadcn/uinew-york-v4 · synced Aug 29, 2026
Installation
import {
SidebarProvider,
Sidebar,
SidebarHeader,
SidebarContent,
SidebarFooter,
SidebarGroup,
SidebarGroupLabel,
SidebarGroupContent,
SidebarMenu,
SidebarMenuItem,
SidebarMenuButton,
SidebarTrigger,
SidebarInset,
} from "@aspyn-io/kit";Notes
- Wrap your app in SidebarProvider and put page content in SidebarInset. Sidebar supports side (left/right), variant (sidebar/floating/inset), and collapsible (offcanvas/icon/none).
- SidebarTrigger toggles it; ⌘/Ctrl+B is wired by default and the open state persists via cookie. On mobile it becomes a Sheet automatically.
- Colors come from a dedicated --as-sidebar-* token set (bg-sidebar, sidebar-accent, sidebar-border…), so the chrome themes independently of the main surface.