Seitenleiste (Sidebar) — component.sidebar
Einheitliche App-Navigation mit App-Suchanbindung, dynamischen Gruppen, Seitenbaum, Eintragsaktionen, Gruppenfilter und Sortierung per Gedrückthalten. Ab 1.17.0 variant workspace: Seitenleiste der Arbeitsbereiche (Brain, Agentic Chat, Messenger) mit Bereichswahl, Suche, Liste und Fuß. 1.19.0: feste
Beispiele
App-Sidebar mit Gruppen, Icons, Badge und Nutzer-Fuß (Klapp-Knopf oben rechts)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
variant | string: navigation | workspace | "navigation" |
label | string | "" |
areas | array | [] |
search | object | [] |
tree | object | [] |
listScale | string: standard | app | "standard" |
view | string: navigation | search-results | "navigation" |
searchMode | string: menu | app | "menu" |
searchLabel | string | "Suche öffnen" |
searchResults | array | [] |
brand | string | "" |
groups * | array | [] |
userName | string | "" |
userInfo | string | "" |
side | string: start | end | "start" |
collapsible | boolean | true |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
collapsed | boolean | false |
userAvatarSrc | string | "" |
brandCompact | boolean | false |
collapseNarrow | boolean | false |
reorderable | boolean | true |
stateKey | string | "" |
brandIconUrl | string | "" |
searchIconUrl | string | "" |
searchValue | string | "" |
searchable | boolean | true |
iconHints | boolean | false |
Events & Slots
Events: navigate, sidebar-search-open
Slot default: akzeptiert ui.*, component.*, layout.*
Slot areas: akzeptiert component.icon-rail, ui.*, component.*
Slot areasEnd: akzeptiert ui.*, component.*
Slot search: akzeptiert ui.*, component.*
Slot actions: akzeptiert ui.*, component.*
Slot footer: akzeptiert ui.*, component.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--sidebar-border-default | var(--color-border-default) |
--sidebar-radius-control | var(--shape-control) |
--sidebar-surface-default | var(--color-surface-default) |
--sidebar-surface-sunken | var(--color-surface-sunken) |
--sidebar-text-default | var(--color-text-default) |
--sidebar-text-muted | var(--color-text-muted) |
--sidebar-active-marker | var(--color-action-primary) |
--sidebar-row | var(--navigation-row) |
--sidebar-ink | var(--color-text-muted) |
--sidebar-selection-ink | var(--color-action-primary) |
--sidebar-selection-soft | var(--color-accent-soft) |
--sidebar-extension-surface | var(--color-surface-page) |
--sidebar-icon-light | var(--color-navigation-icon-light) |
--sidebar-icon-dark | var(--color-navigation-icon-dark) |
--sidebar-icon-material | linear-gradient(145deg, var(--sidebar-icon-light) 0%, var(--sidebar-icon-dark) 62%, var(--sidebar-icon-dark) 100%) |
--sidebar-content-inset | var(--navigation-padding) |
--sidebar-icon-axis | calc(var(--navigation-width-collapsed) / 2) |
--sidebar-extension-glass | var(--material-glass-extension-background) |
--sidebar-search-glass | var(--material-glass-search-background) |
--sidebar-app-art-gradient | linear-gradient(to right, var(--color-accent) 0%, var(--color-accent) 65%, color-mix(in srgb, var(--color-accent) 73%, black) 100%) |
--sidebar-brand-icon | calc(var(--navigation-icon) * 1.5) |
--sidebar-art-image-opacity | 0 |
--sidebar-extension-radius | var(--shape-pill) |
--search-pad | 12px |
--search-neck | calc(var(--search-row-height) + var(--extension-inset) * 2) |
--search-radius | var(--shape-card) |
--sidebar-extension-start | inset(0 0 0 calc(100% - var(--extension-origin-width)) round var(--sidebar-extension-radius)) |
--navigation-text | var(--navigation-item-text, 0.875rem) |
--navigation-icon | var(--navigation-item-icon, 1rem) |
--navigation-section-text | var(--navigation-label-text, 0.75rem) |
--navigation-section-tracking | 0 |
--badge-background | transparent |
--badge-border | transparent |
--badge-color | var(--color-text-muted) |
Genutzte Design-Tokens
border.emphasis border.hairline color.accent color.accent-soft color.action.primary color.action.secondary color.border.default color.border.subtle color.nav.active color.nav.active-text color.surface.default color.surface.page color.surface.sunken color.text.default color.text.muted duration.fast duration.slow easing.standard elevation.modal elevation.nav-active elevation.raised focus.ring-color focus.ring-width font.family.default gradient.brand-subtle gradient.nav-active navigation.duration navigation.extension-duration navigation.extension-easing navigation.gap navigation.hover navigation.icon navigation.padding navigation.padding-compact navigation.row navigation.row-compact navigation.row-short navigation.search-width navigation.section-text navigation.section-tracking navigation.text navigation.width-collapsed navigation.width-expanded radius.control radius.full size.1 size.16 size.2 size.3 size.32 size.4 size.5 size.8 text.lg text.md text.sm text.xs weight.bold weight.medium weight.regular weight.semibold