Tone
The Tone type: neutral, info, success, warning and destructive, the one status vocabulary of Badge, Alert, StatusPill, Progress, Meter and Toast, plus violet, a category tone that is not a status.
Example
- neutralneutralNo judgement
- infoinfoIn progress
- successsuccessDone, healthy
- warningwarningNeeds attention
- destructivedestructiveFailed, blocked
- violetvioletA category
tone-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
Import Tone wherever a component takes a status, instead of loose strings or component-specific words.
API reference
This item exports functions and types rather than components.
Other exports
TonetonesAccessibility
- Every tone's soft foreground reaches 4.5:1 on its soft fill, in both modes and every palette.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.