Primitives
Sidebar
Responsive app sidebar with collapse, mobile sheet, and keyboard toggle support.
Composition
The preferred shape for composing the installed primitive from its exported parts.
Application shell
Provider owns responsive state; Sidebar and SidebarInset stay as siblings.
SidebarProvider├── Sidebar│ ├── SidebarHeader│ ├── SidebarContent│ │ └── SidebarGroup│ │ ├── SidebarGroupLabel│ │ └── SidebarMenu│ │ └── SidebarMenuItem│ │ └── SidebarMenuButton│ ├── SidebarFooter│ └── SidebarRail└── SidebarInset └── SidebarTriggerThe refined source installs this primitive from src/registry/sources/refined/ui/sidebar.tsx. Install it on its own with the command above, or inspect the source below.
npx shadcn@latest add http://127.0.0.1:3000/r/refined/sidebar.jsonInstalled dependencies
Installed with this primitive because the slot depends on them; they are support files, not standalone sidebar items.
Mobile hook
src/registry/hooks/use-mobile.tsHookSheet slot
src/registry/sources/refined/ui/sheet.tsxSkinTooltip slot
src/registry/sources/refined/ui/tooltip.tsxSkinRaw code
Primary installed primitive source
Sidebar slot
src/registry/sources/refined/ui/sidebar.tsx