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
Collapsible & Interactive

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 />
PropTypeDefaultDescription
defaultOpenbooleantrueInitial open/expanded state of sidebar.
widthstring"w-56"Tailwind width class when sidebar is expanded.
collapsedWidthstring"w-14"Tailwind width class when sidebar is collapsed.
<SidebarMenuButton />
PropTypeDefaultDescription
activebooleanfalseWhether the item is currently selected with system blue highlight.
iconReact.ReactNodeLeading icon element.
badgeReact.ReactNodeTrailing badge or counter pill.
onClick() => voidClick handler.