Badge
Compact read-only status or category pill set by the system.
Label the user applies or manages: removable, selectable, with optional count, status dot, or avatar.
Labels the user applies or manages. Removable, selectable, with an optional count, dot, or avatar.
A removable Tag at md. Remove it, then Reset to bring it back. Variants shows sizes, selectable, count, dot and avatar.
Tag for labels the user adds, removes, or picks. Only the checkbox and the X are interactive; the Tag itself is not a button.
Badge is read-only status or category the system sets, like Paid, Overdue, or Beta. Tag is a label the user applies or manages: filter chips, keywords, assigned people. If the user can remove or select it, use Tag.
import { Tag } from "agentic-ds-kit";From contracts/tag.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| children | string | Yes | — | — |
| size | sm | md | lg | No | md | Same sizes as Badge |
| removable | boolean | No | false | — |
| onRemove | function | No | — | (event) => void; used when removable. The event lets a parent control stop propagation. |
| selectable | boolean | No | false | Leading kit Checkbox, labelled by the Tag text |
| selected | boolean | No | — | controlled; selectable only |
| defaultSelected | boolean | No | false | uncontrolled; selectable only |
| onSelectedChange | function | No | — | (selected: boolean) => void |
| count | number | No | — | Trailing kit Count, size sm, intent neutral, subtle |
| dot | enum | No | — | Leading status dot; decorative, the text carries the meaning neutral | success | warning | danger | info |
| avatar | object | No | — | { name: string; src?: string } — leading kit Avatar sized to the Tag (20/24/32px via space tokens) with an even space.inset.2xs inset when it leads; sm shows one initial |
| disabled | boolean | No | false | — |
| id | string | No | — | Checkbox id when selectable; generated when omitted |
Compact read-only status or category pill set by the system.
How a value moved: an arrow and the signed change in success, danger or neutral text, with no fill.
Small number badge for counts, like unread items on a nav link or tab.
Choose several values.