Töne und Betonung
Subtle als Standard, Solid für hohe Aufmerksamkeit
Daten
Compact marker for status, category or a count. Subtle emphasis is the default, solid draws attention. Status = dot + text for tables; Dot = pure indicator and needs a label (read by screen readers). Never convey meaning by colour alone.
Subtle als Standard, Solid für hohe Aufmerksamkeit
SM 16, MD 20, LG 24 px, eckig oder als Pille
Punkt mit Text für Tabellen, reiner Punkt nur mit zugänglichem Namen
Zähler am Icon Button und Status in einer Liste
example.com <tc-badge> im Markup; die count-Property kappt automatisch auf „99+“.
| Option | Standard | Werte | Beschreibung |
|---|---|---|---|
label | '' | – | Text (badge, status) or accessible name (count, dot). |
type | 'badge' | Badge (text), count (mono number), status (dot + text) or dot. | |
tone | 'neutral' | Colour tone. | |
emphasis | 'subtle' | Subtle tint or solid fill (badge, count). | |
size | 'md' | Height: sm 16, md 20, lg 24 px (all types share one height per size). | |
shape | 'rounded' | Rounded (4 px) or pill (badge, count). | |
count | 'None' | – | Counter value for type count. |
max | 99 | – | Counts above this show as "99+"; 0 disables the cap. |
pulse | False | – | Animated halo for live or new hints (dot, status, count). Use sparingly. |
icon | '' | – | Leading Carbon icon (type badge only). |
Zusätzliche Attribute (z. B. class, aria-*, data-*) und HTMX-Kurzformen (get, post, get_url, post_url, target, swap, trigger, confirm) werden an das Element „root“ durchgereicht.