Fenster-Tabs
Reiter-Leiste für das Fenster-Chrome: mehrere Dokumente/Bretter in EINEM Fenster. Jeder Reiter hat Titel und optional ein Schließen-×, am Ende optional ein Plus zum Hinzufügen. Reiner Zustands-Darsteller — die Auswahl/Schließen-Logik besitzt die Fenster-Runtime (data-window-tab / -close / -add). 1.5
Nutzt: ui.icon
Beispiele
Drei Reiter + Plus
Aufträge
Entwicklung
Support
Mit Icon, nicht schließbar
Übersicht
Bericht
Eigenschaften
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| tabs * | array | — | Reiter |
| addable | boolean | false | Plus-Knopf (neuer Reiter) |
| padding | string: standard | none | sm | md | lg | xl | "standard" | Innenabstand (standard = Baustein-Wert) |
| margin | string: standard | none | sm | md | lg | xl | "standard" | Aussenabstand |
| border | string: standard | none | hairline | strong | "standard" | Rahmen |
| radius | string: standard | none | control | surface | pill | "standard" | Ecken-Rundung |
| textColor | string | "" | Textfarbe (Token; leer = Standard) |
| backgroundColor | string | "" | Hintergrundfarbe (Token; leer = Standard) |
| shadow | string: standard | none | sm | md | lg | "standard" | Schatten |
| width | string: standard | full | "standard" | Breite |
| alignSelf | string: standard | start | center | end | "standard" | Ausrichtung im Elternteil |
| anchor | string | "" | Anker-ID (Sprungziel, z. B. fuer Nav-Links) |
* Pflicht-Prop
Stellschrauben (Komponenten-Tokens)
Ebene 3 — aus dem CSS generiert (Registry). Umverdrahtbar per Hüllen-Komposition, ohne Markup-Eingriff; künftige Regler-Quelle des Component Builders.
| Token | Default |
|---|---|
--window-tab-surface | var(--window-card-background, var(--color-surface-page)) |
--window-tab-radius | var(--shape-card) |
--window-tabs-chrome-height | calc(var(--window-titlebar-height, var(--size-8)) + var(--size-2) + var(--border-hairline)) |
--window-tab-fill | color-mix(in srgb, var(--window-tab-surface) 86%, var(--color-text-muted)) |
Genutzte Design-Tokens
border.emphasisborder.hairlinecolor.accentcolor.action.primarycolor.border.defaultcolor.border.subtlecolor.status.dangercolor.status.danger-surfacecolor.surface.defaultcolor.surface.overlaycolor.surface.pagecolor.surface.raisedcolor.surface.sunkencolor.text.defaultcolor.text.mutedcontainer.2xsduration.fasteasing.standardelevation.overlayfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultlayer.maxleading.basenavigation.durationradius.fullsize.05size.1size.1-5size.10size.2size.24size.3size.32size.4size.5size.6size.8text.mdtext.smweight.mediumweight.semibold
LLM-Notizen
# component.window-tabs
Reiter-Leiste für das Fenster-Chrome: mehrere Dokumente/Bretter in EINEM Fenster, je Reiter Titel und optionales Schließen-×, am Ende optional ein Plus.
## Wann nutzen
- Im Fenster-Chrome des Desktops, um mehrere Tabs eines Fensters darzustellen.
- Nicht für Seiten-Navigation (`component.tab-bar`) oder Panel-Umschaltung (`component.tabs`).
## Wichtige Props
- `tabs` * = Reiter, je `{ id* (max 80), title* (max 80), active?, closable? (Default true), icon? }`
- `addable` = Plus-Knopf für neuen Reiter zeigen (Default false)
## Beispiel-Node
{ "definition": "component.window-tabs", "props": { "addable": true, "tabs": [ { "id": "a", "title": "README", "active": true }, { "id": "b", "title": "index.js", "closable": true } ] } }
## Hinweise
- Reiner Zustands-Darsteller ohne Events — Auswahl/Schließen/Hinzufügen besitzt die Fenster-Runtime (`data-window-tab` / `-close` / `-add`).