API and Development
SidebarProvider holds collapse state (collapsed, setCollapsed, toggleCollapsed). Sidebar renders a column navigation landmark (role="navigation"). Compose with SidebarHeader, SidebarContent, SidebarGroup, SidebarItem, SidebarExpandableItem, SidebarSection, SidebarNestedGroup, SidebarFooter, SidebarLabel, and SidebarSeparator for full app shells.
No extracted props
This component does not declare package-specific props in the generated API. It may still accept standard HTML and React attributes for its underlying element (for example className, id, and ARIA attributes). Props whose types come only from dependencies are omitted from this table.
Interactive examples and edge cases for this component are in Storybook.
Name | Type | Default | Description |
|---|---|---|---|
|
|
| Initial collapsed state when uncontrolled. |
|
|
| Controlled collapsed flag. |
|
|
| Fires when collapse toggles. |