Import
Usage
Basic group
Clickable group header
When you specify ato prop, the group title becomes a clickable link:
Initially collapsed
Control the initial expanded state withdefaultOpen:
Nested groups
You can nestSidebarGroup components for hierarchical navigation:
Props
LocalizedString
required
Group title. Supports internationalization via
LocalizedString.ReactNode
Group icon displayed next to the title.
string
When specified, the title becomes a clickable link to this URL.
boolean
default:"true"
Initial expanded state. Set to
false to render the group collapsed by default.ReactNode
required
Child items - typically
SidebarItem, nested SidebarGroup, or SidebarSeparator components.Internationalization
Group titles support localized strings usingdefineI18nLabels:
Examples
Multi-level navigation
With access control
Combine withWithGuard to conditionally show groups based on permissions:
Internationalized navigation
Related Components
- SidebarItem - Navigation item for the sidebar
- SidebarLayout - Main sidebar container with DefaultSidebar
- WithGuard - Conditional rendering based on guards
- defineI18nLabels - Define internationalized labels