Badge — ui.badge
Status- oder Kategorie-Kennzeichen. BREAKING 2.0.0: Prop tone heißt jetzt variant (Migration 1-to-2 vorhanden). 2.5.0: Variante accent (Klasse invisible-badge--accent) ergaenzt. 2.6.0 (28.10.2026, opt-in, nex, wingQ-Chat): title = nativer Tooltip (title-Attribut), Luecke 36. 2.6.1 (08.11.2026, Fehle
Beispiele
Neutral
EntwurfErfolg
VeröffentlichtWarnung
VeraltetFehler
FehlgeschlagenInfo
BetaKlein + Outline
BetaTag-Farbe: Blau (Kategorie)
ShopifyTag-Farbe: Grün
VertriebTag-Farbe: Violett
E-MailTag-Farbe: Pink
MarketingTag-Farbe: Grau
ArchivMit Tooltip (2.6.0, title): Abo-Marke
Abo 42 %Eigenschaften
| Prop | Typ | Default |
|---|---|---|
label * | string | — |
href | string | "" |
title | string | "" |
variant | string: neutral | success | warning | danger | info | accent | "neutral" |
color | string: | gray | red | orange | amber | green | teal | blue | violet | pink | "" |
dot | boolean | false |
size | string: sm | md | "md" |
outline | 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 | "" |
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--badge-background | var(--color-surface-sunken) |
--badge-color | var(--color-text-muted) |
--badge-border | var(--color-border-default) |
Genutzte Design-Tokens
border.hairline color.accent-soft 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.status.danger color.status.danger-surface color.status.info color.status.info-surface color.status.success color.status.success-surface color.status.warning color.status.warning-surface color.surface.default color.surface.selected color.surface.sunken color.text.accent color.text.default color.text.muted duration.fast easing.standard focus.ring-color focus.ring-offset focus.ring-width font.family.default leading.base radius.full size.05 size.1 size.2 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.text.mix tag.violet.tone text.2xs text.xs weight.semibold