Sidebar
Navigation
macOS native translucent sidebar with collapsible state, section headers, search input, nested sub-menus, active highlights, and custom footers.
Installation
$npx shadcn-macos@latest add sidebar
Examples
macOS Sidebar Demo
documents
Selected Item View · APFS Volume
12 files
documents_Folder_1Aug 2026
documents_Folder_2Aug 2026
documents_Folder_3Aug 2026
documents_Folder_4Aug 2026
documents_Folder_5Aug 2026
documents_Folder_6Aug 2026
documents_Folder_7Aug 2026
documents_Folder_8Aug 2026
documents_Folder_9Aug 2026
Props
<SidebarProvider />| Prop | Type | Default | Description |
|---|---|---|---|
| defaultOpen | boolean | true | Initial open/expanded state of sidebar. |
| width | string | "w-56" | Tailwind width class when sidebar is expanded. |
| collapsedWidth | string | "w-14" | Tailwind width class when sidebar is collapsed. |
<SidebarMenuButton />| Prop | Type | Default | Description |
|---|---|---|---|
| active | boolean | false | Whether the item is currently selected with system blue highlight. |
| icon | React.ReactNode | — | Leading icon element. |
| badge | React.ReactNode | — | Trailing badge or counter pill. |
| onClick | () => void | — | Click handler. |