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
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
| Prop | Typ | Default | Builder-Label |
|---|---|---|---|
| label * | string | — | Beschriftung |
| href | string | "" | Link (leer = reine Marke; z. B. Kategorie -> Kategorieseite) |
| title | string | "" | Tooltip (title; leer = keiner) |
| variant | string: neutral | success | warning | danger | info | accent | "neutral" | Variante |
| color | string: | gray | red | orange | amber | green | teal | blue | violet | pink | "" | Tag-Farbe (statt Variante) |
| dot | boolean | false | Status-Punkt zeigen |
| size | string: sm | md | "md" | Größe |
| outline | boolean | false | Nur Rahmen (transparent) |
| 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 |
|---|---|
--badge-background | var(--color-surface-sunken) |
--badge-color | var(--color-text-muted) |
--badge-border | var(--color-border-default) |
Genutzte Design-Tokens
border.hairlinecolor.accent-softcolor.border.defaultcolor.border.strongcolor.chart.1color.chart.2color.chart.3color.chart.4color.chart.5color.chart.6color.chart.7color.chart.8color.status.dangercolor.status.danger-surfacecolor.status.infocolor.status.info-surfacecolor.status.successcolor.status.success-surfacecolor.status.warningcolor.status.warning-surfacecolor.surface.defaultcolor.surface.selectedcolor.surface.sunkencolor.text.accentcolor.text.defaultcolor.text.mutedduration.fasteasing.standardfocus.ring-colorfocus.ring-offsetfocus.ring-widthfont.family.defaultleading.baseradius.fullsize.05size.1size.2tag.amber.tonetag.blue.tonetag.gray.tonetag.green.tonetag.orange.tonetag.pink.tonetag.red.tonetag.teal.tonetag.text.mixtag.violet.tonetext.2xstext.xsweight.semibold
LLM-Notizen
ui.badge
Kleines Etikett/Pill. Zwei getrennte Farbachsen: variant = STATUS (Bedeutung), color = TAG-Farbe (Kategorie).
Wann welche Achse
variant(neutral/success/warning/danger/info) für STATUS mit Bedeutung: „Fehlgeschlagen", „Veröffentlicht". Rot = Fehler.color(Tag-Farbwelt, Phase 7: gray/red/orange/amber/green/teal/blue/violet/pink) für KATEGORIEN ohne Wertung: Kanal, Team, Label — ruhige bunte Chips (Notion/Linear).colorübersteuertvariant.
Wichtige Props
label* = Textvariant= Status-Variante (Default neutral)color= Tag-Farbe (leer =variantgilt)dot= Status-Punkt,size= sm|md,outline= nur Rahmentitle(2.6.0, 28.10.2026, opt-in, nex, wingQ-Chat) = nativer Tooltip (title-Attribut, bis 200 Zeichen), z. B. Abo-Verbrauch im Detail an der
Abo-Marke - statt einer component.tooltip-Huelle (Luecke 36). href (2.3) macht die Marke zum Link.
Beispiel-Node
{ "definition": "ui.badge", "props": { "label": "Shopify", "color": "blue" } }
Hinweise
- Die Tag-Farben kommen aus theme-adaptiven Tokens
--tag-<farbe>-surface/text/border(percolor-mixin die aktuelle Fläche/Textfarbe gemischt) — dieselbe Farbe liest sich in Light UND Dark. Nie rohe Farben setzen. - In
component.tableper Spalte:type: "badge"+tones(Status) ODERcolors(Tag-Farbe, Wert→Farbe).