Tab-Leiste (Pills) — component.tab-bar
Segmentierte Pill-Tab-Leiste (Atlassian-Collections-Muster): Leiste auf sunken-Fläche, aktiver Tab als Secondary-Pill — progressive Links, optional zentriert. 1.1.0 (opt-in): Icon und Zaehler je Reiter, variant underline (Ansichts-Reiter mit Unterstrich), Hinzufuegen-Reiter (addLabel + addHref). 1.6
Beispiele
Segmentierte Pill-Tabs, aktiver Tab als Secondary-Pill
Ansichts-Reiter mit Unterstrich, Icons, Zaehler und Hinzufuegen (1.1.0)
1.7: Kontextspalte – kleine Reiter mit Symbolen (size sm, ghost), Umbruch statt Rollen (overflow wrap)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
touch | boolean | false |
items * | array | — |
centered | boolean | true |
variant | string: pill | underline | ghost | "pill" |
size | string: md | sm | "md" |
overflow | string: scroll | wrap | "scroll" |
addLabel | string | "" |
addHref | string | "" |
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: change
Slot actions: akzeptiert ui.*, component.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--tab-bar-action-on-secondary | var(--color-action-on-secondary) |
--tab-bar-action-secondary | var(--color-action-secondary) |
--tab-bar-focus-ring-color | var(--focus-ring-color) |
--tab-bar-focus-ring-offset | var(--focus-ring-offset) |
--tab-bar-focus-ring-width | var(--focus-ring-width) |
--tab-bar-radius-full | var(--radius-full) |
--tab-bar-surface-sunken | var(--color-surface-sunken) |
--tab-bar-text-default | var(--color-text-default) |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.on-secondary color.action.primary color.action.secondary color.border.default color.border.strong 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.surface.default color.surface.sunken color.text.accent color.text.default color.text.muted control.height duration.fast easing.standard elevation.control focus.ring-color focus.ring-offset focus.ring-width font.family.default leading.tight radius.full size.05 size.1 size.1-5 size.10 size.2 size.3 size.4 size.5 size.6 size.8 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.sm weight.medium weight.regular