Examples
Basic usage
Properties
| Name | Type | Required | Description |
|---|---|---|---|
| @sidebarItems | SidebarItem[] | No | Array of sidebar items. Each item is either a SidebarLink or a SidebarGroup with nested items. |
| @drawerId | string | No | ID used to associate the sidebar with a navbar toggle button via drawer. |
| @collapsed | boolean | No | Controls the collapsed state of the sidebar. |
| @onCollapsedChange | (collapsed: boolean) => void | No | Callback called with the new collapsed boolean when the user toggles the sidebar. |