Status Pill
Presentational status pill with the shared tones (plus muted) and an optional dot that pings three times when its status changes (pulse="always" keeps pinging, which is costly in lists and boards), and StatusDot: a coloured dot with a screen reader label. The ping stops under reduced motion.
Example
DraftRunningPassedWaitingFailedArchived
- Onlineapi-1
- Degradedapi-2
- Offlineworker-1
status-pill-demo.tsxCopy code
Installation
Copy code
Brings alongtone
npm packages
class-variance-authority@0.7.1Usage
ImportCopy code
API reference
StatusPing
| Prop | Type | Default |
|---|---|---|
pulse | StatusPulse | – |
restartKey | string | – |
StatusDot
| Prop | Type | Default |
|---|---|---|
labelrequiredWhat the dot means, read by screen readers and agents in place of the colour. | string | – |
tone | StatusTone | – |
pulsePings to show something live: three times when it turns on or the status changes, then still. `"always"` keeps pinging; avoid it in lists and boards, where every running ping makes the page slower to repaint. Still under reduced motion. | StatusPulse | – |
Also takes <span> attributes and render except children.
StatusPill
| Prop | Type | Default |
|---|---|---|
children | ReactNode | – |
tone | StatusTone | – |
dot | boolean | – |
pulseWith `dot`: pings three times when it turns on or the tone changes; `"always"` keeps pinging (costly in lists). | StatusPulse | – |
Also takes <span> attributes and render except children.
Other exports
statusPillVariantstype StatusDotPropstype StatusPillPropstype StatusPulsetype StatusToneAccessibility
- StatusDot takes a screen-reader label; its pulse pings three times when the status changes and stops under reduced motion.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.