Badge
Compact read-only status or category pill set by the system.
Small number badge for counts, like unread items on a nav link or tab.
Small number badge for unread or pending counts. Not Badge. Not a button. Counts above max show as max+.
Three unread, info intent, md. Variants shows intents, subtle, sizes and disabled.
Pass label so screen readers hear 3 unread messages, not just 3. Badge is for words.
import { Count } from "agentic-ds-kit";From contracts/count.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 |
|---|---|---|---|---|
| count | number | Yes | — | — |
| intent | info | danger | neutral | No | info | info is the default brand (ink) fill. danger for items that need action now. neutral for plain totals. |
| size | sm | md | lg | No | md | Heights space-4 / space-5 / space-6. sm and md are the standard counts; lg is for larger controls. |
| subtle | boolean | No | false | Lighter fill. Defined for info, neutral, and danger. |
| disabled | boolean | No | false | Muted fill and faint text. |
| max | number | No | 99 | Above max the Count shows max+. |
| label | string | No | — | What is counted, for screen readers, like unread messages. |
| prefix | + | No | — | Shown before the number for an overflow count, like +3 in MultiSelect. Visual only; screen readers hear the count and label (3 more selected). |
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.
Clickable action control with appearance × mode (plus an optional flat set) and a fixed set of sizes.
one KPI with label, value, optional delta/trend/hint/badge