Sidebar
Layout

Sidebar.

Compound sidebar with groups, links, and logo-only collapse.

Real interactive component
Live demo
Toggle the sidebar

When collapsed, only the icon remains.

The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.

Props & API reference

Parameters available in the shared component, including value types, requirements and accepted options.

7 props
ParameterTypeRequiredDefaultPossible valuesDescription
childrenReactNodeYes——Sidebar sections, groups and links.
classNamestringNo——Additional sidebar styling.
SidebarBrand.iconReactNodeYes——Brand mark displayed in expanded and compact views.
SidebarGroup.labelstringNo——Optional heading for a link group.
SidebarLink.activebooleanNofalsetrue · falseHighlights a current destination.
SidebarLink.iconIconNameNo""See the Icons galleryLucide icon beside the label.
SidebarLink.hrefstringNo——Native anchor destination.