Sidebar
Navigation
Collapsible sidebar navigation with animated width transition, staggered item entrance, and expandable sub-items with AnimatePresence.
Loading preview...
Customize
Collapsed
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | SidebarItem[] | [] | Array of navigation items with label, optional icon, href, and nested children. |
collapsed | boolean | false | Whether the sidebar is collapsed to icon-only mode. |
onToggle | () => void | — | Callback fired when the collapse toggle button is clicked. |
className | string | '' | Additional CSS classes. |