Invisible Docs
GalerieTokens

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

UI Elementv2.6.1Statusweb.documentweb.applicationdesktop.shellemail.client

Beispiele

Neutral

Entwurf

Erfolg

Veröffentlicht

Warnung

Veraltet

Fehler

Fehlgeschlagen

Info

Beta

Klein + Outline

Beta

Tag-Farbe: Blau (Kategorie)

Shopify

Tag-Farbe: Grün

Vertrieb

Tag-Farbe: Violett

E-Mail

Tag-Farbe: Pink

Marketing

Tag-Farbe: Grau

Archiv

Mit Tooltip (2.6.0, title): Abo-Marke

Abo 42 %

Eigenschaften

PropTypDefault
label *string—
hrefstring""
titlestring""
variantstring: neutral | success | warning | danger | info | accent"neutral"
colorstring: | gray | red | orange | amber | green | teal | blue | violet | pink""
dotbooleanfalse
sizestring: sm | md"md"
outlinebooleanfalse
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

Stellschrauben (Komponenten-Tokens)

TokenDefault
--badge-backgroundvar(--color-surface-sunken)
--badge-colorvar(--color-text-muted)
--badge-bordervar(--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