Baum (Tree View) — component.tree
Hierarchische Baum-Ansicht (Ordner/Strukturen, max. 6 Ebenen): Zweige klappen per Controller, Blätter emittieren select — Chevron dreht, aktiver Knoten hervorgehoben. 1.2.0 (opt-in): variant navigation (Zeilen wie die Fensternavigation component.sidebar: Steuerelement-Hoehe, Pill-Auswahl in Akzentfa
Beispiele
Struktur-Baum (Zweige klicken zum Klappen)
- Produkte
- Elektronik
- Notebooks.csv
- Zubehör.csv
- Möbel
- Elektronik
- Kunden
- B2B
- B2C
- README.md
1.22: Chatliste (wingQ) – Avatare 3xl mit Ring, Lesegröße, farbige Fakten, pulsierender Indikator
1.23: Chatliste (wingQ) – activeStyle tint, factsLines 1, navList, indicator.spin
1.22.2: Themenliste – lange Titel zweizeilig (labelLines 2) ohne Unterzeile, Farbpunkt als Status, Zähler als Marke
1.27: Unteraufgaben ziehen und speichern (moveUrl) – Ebene wechseln = umhängen
- Angebot erstellen
- Preise prüfen
- Text schreiben
- Einleitung
- Rechnung stellen
1.26: Studio-Strukturbaum – Zustände (verworfen, gesperrt, gebunden), Slot-Gruppen, Ziehen über Ebenen
- Seite „Kontakte“
- header
- Kopfzeile
- main
- Karte „Umsatz“
- Tabellekontakte
- Spalte Statuskontakte.status
- Spalte Name
- aside
- Filterleiste
- Hinweis
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
nodes * | array | — |
filter | object | — |
liveBadges | boolean | false |
sortKey | string | "" |
linkEvent | string: navigate | none | "navigate" |
variant | string: default | navigation | "default" |
title | string | "" |
density | string: default | compact | "default" |
indent | string: default | sm | none | "default" |
avatarSize | string: sm | md | lg | xl | 2xl | 3xl | 4xl | "sm" |
avatarRing | boolean | false |
size | string: default | lg | "default" |
avatarShape | string: circle | rounded | "circle" |
avatarFocus | string: center | top | "center" |
itemGap | string: none | sm | md | "none" |
activeStyle | string: pill | card | tint | "pill" |
branchStyle | string: default | heading | "default" |
branchClick | string: toggle | link | "toggle" |
childStyle | string: default | compact | "default" |
labelLines | number: 0 | 1 | 2 | 1 |
subtitleLines | number: 1 | 2 | 1 |
factsLines | number: 0 | 1 | 0 |
dragNodes | boolean | false |
moveUrl | string | — |
moveOp | string | "tree.move" |
navList | boolean | false |
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 | "" |
Events & Slots
Events: navigate, select, move
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--tree-focus-ring-color | var(--focus-ring-color) |
--tree-focus-ring-offset | var(--focus-ring-offset) |
--tree-focus-ring-width | var(--focus-ring-width) |
--tree-radius-control | var(--radius-control) |
--tree-surface-sunken | var(--color-surface-sunken) |
--tree-text-default | var(--color-text-default) |
--tree-text-muted | var(--color-text-muted) |
--tree-nav-row | var(--navigation-row, var(--control-height-sm, 2.25rem)) |
--tree-nav-padding | var(--navigation-padding, var(--size-3)) |
--tree-nav-gap | var(--navigation-gap, var(--size-05)) |
--tree-nav-text | var(--navigation-text, var(--text-sm)) |
--tree-nav-icon | var(--navigation-icon, var(--size-4)) |
--tree-nav-hover | var(--navigation-hover, var(--color-surface-hover)) |
--tree-nav-indent | var(--size-4) |
--tree-nav-ink | var(--color-text-muted) |
--tree-nav-selection | var(--color-accent-soft) |
--tree-nav-selection-ink | var(--color-action-primary) |
--avatar-size | calc(var(--size-6) + var(--size-1)) |
--tree-mark-tone | var(--color-action-primary) |
--tree-active-fill | color-mix(in srgb, var(--tree-tone, var(--color-accent)) var(--nav-active-tint, 12%), transparent) |
Genutzte Design-Tokens
border.emphasis border.hairline color.accent color.accent-soft color.action.on-primary color.action.primary color.border.default color.chart.1 color.chart.2 color.chart.3 color.chart.4 color.chart.5 color.chart.6 color.chart.7 color.chart.8 color.nav.active color.nav.active-text color.nav.hover color.series.1 color.series.2 color.series.3 color.series.4 color.series.5 color.series.6 color.series.7 color.series.8 color.status.danger color.status.info color.status.success color.status.warning color.surface.default color.surface.hover color.surface.sunken color.text.default color.text.link color.text.muted control.height duration.fast easing.standard elevation.nav-active focus.ring-color focus.ring-offset focus.ring-width font.family.default gradient.brand-subtle gradient.nav-active leading.tight nav.active-tint navigation.gap navigation.hover navigation.icon navigation.padding navigation.row navigation.section-text navigation.section-tracking navigation.text radius.control radius.full size.05 size.1 size.1-5 size.10 size.12 size.16 size.18 size.2 size.3 size.4 size.5 size.6 size.8 size.9 tag.amber.tone tag.blue.tone tag.gray.tone tag.green.tone tag.orange.tone tag.pink.tone tag.red.tone tag.teal.tone tag.violet.tone text.2xs text.md text.sm text.xs tracking.wide weight.medium weight.regular weight.semibold