Design System v1.0

Sidebar

A composable application sidebar with header, grouped menu, and footer.

API reference

A composable application sidebar. SidebarProvider supplies collapse state; Sidebar holds a header, a scrollable body of grouped menus, and a footer, alongside a SidebarInset for the main area.

Anatomy
SidebarThe sidebar container; collapsible offcanvas, icon, or none.
SidebarContentScrollable body holding the navigation groups.
SidebarFooterBottom region, e.g. settings or the account menu.
SidebarGroupA titled section of menu items.
SidebarGroupAction
SidebarGroupContent
SidebarGroupLabelHeading for a group.
SidebarHeaderTop region, typically the logo or workspace switcher.
SidebarInput
SidebarInsetThe main content area beside the sidebar.
SidebarMenuThe list of menu items within a group.
SidebarMenuAction
SidebarMenuBadge
SidebarMenuButtonThe interactive nav button; set isActive for the current page.
SidebarMenuItemA single menu row.
SidebarMenuSkeleton
SidebarMenuSub
SidebarMenuSubButton
SidebarMenuSubItem
SidebarMenuSubmenuA parent with subpages: an inline collapsible submenu when expanded, and an off-rail hover/focus flyout when the rail is collapsed to icons. Pass the parent button as `trigger` and the SidebarMenuSubItem rows as children.
SidebarProviderContext provider owning open/collapsed state; wrap the whole layout.
SidebarRail
SidebarSeparator
SidebarTriggerButton that toggles the sidebar open/collapsed.
Props
PartPropTypeDefault
Sidebarvariant"default" | "outline""default"
Sidebarsize"default" | "sm" | "lg""default"

Command Palette

Search for a command to run...