Delta
How a value moved: an arrow and the signed change in success, danger or neutral text, with no fill.
Compact read-only status or category pill set by the system.
Status the system sets. sm 20 and md 24, no border, 4px corner, optional tone icon. Not a number (Count), not a change (Delta), not a person (Avatar), not a button.
A soft success Badge at md with its tone icon. Variants shows every appearance and tone.
Badge for status; Avatar for people; Button for actions. Removable only for dismissible filters; user-managed labels use Tag. tone="brand" is an alias of primary.
Badge is status. Tag is a label the user adds. Count is how many. Delta is how a value moved. Avatar is a person or an organisation. If it is a number, it is never a Badge.
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 { Badge } from "agentic-ds-kit";From contracts/badge.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 | — | — |
| appearance | soft | tint | solid | outline | No | soft | soft is the subtle look (default) for status in tables and lists. solid fills use the tone's fg ink token for the one mark that must stand out. outline is a hairline. |
| tone | enum | No | neutral | brand is an alias of primary. highlight is a gold marker, not a warning. neutral | primary | brand | success | warning | danger | info | highlight |
| size | sm | md | lg | No | md | Heights sm 20 (space-5) and md 24 (space-6) share a row with Count; lg 28. No border, so the height is exact. Radius --radius-control-sm. |
| icon | KitIcon | No | — | Leading tone icon, aria-hidden; the word carries the meaning. Suggested: success CircleCheck (Paid), danger CircleX (Overdue), warning TriangleAlert (Due soon), info Info (Sent) or Clock (Invited), neutral Circle (Draft). Leave it off for plain role labels (Admin, Member). |
| removable | boolean | No | false | — |
| disabled | boolean | No | false | — |
| onRemove | function | No | — | used when removable. Kept for dismissible filters; prefer kit Tag for user-removable labels |
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.
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
Product side nav: brand header, icon items, optional badges, closeable; variant single (one column that closes to an icon rail) or rail-subnav (a fixed icon rail plus a SideNav.SubNav column with the picked parent's rows).