Search documentation

Search the documentation and open a page.

A composable, themeable and customizable sidebar component.

Loading...

Installation

pnpm dlx shadcn@latest add @wirekyt/sidebar

Composition

SidebarProvider ├── Sidebar │ ├── SidebarHeader │ ├── SidebarContent │ │ └── SidebarGroup │ │ ├── SidebarGroupLabel │ │ ├── SidebarGroupAction (optional) │ │ └── SidebarGroupContent │ │ └── SidebarMenu │ │ └── SidebarMenuItem │ │ ├── SidebarMenuButton │ │ ├── SidebarMenuAction (optional) │ │ └── SidebarMenuBadge (optional) │ ├── SidebarFooter │ └── SidebarRail (optional) ├── SidebarTrigger └── SidebarInset

Examples

Default

Loading...

Floating

Loading...

In A Dialog

Loading...
Loading...

API Reference

PropTypeDefault
variant"default" | "outline""default"
size"default" | "sm" | "lg""default"

Context, Hooks, and Types

ExportAPI
SidebarProviderProvides an externally created API to the component tree.
useSidebarCreates or accesses the component API.