Result icon
The outcome of an operation as a mark that draws itself once: a check, a cross, an exclamation, or a turning arc only while pending.
- Build
- Run tests
- Upload assets
- Promote
When to use
- Steps of a job, rows of a checklist, the result of a test.
- Replacing a spinner with the outcome in the same place.
When not to use
- Status that never changes; use a badge.
- Long-running progress; use progress.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/result-icon
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
ResultIcon
4 props
PropTypeDefaultDescription
status *ResultIconStatus—
labelstring—Spoken name; defaults to a word for the status.
sizenumber20
classNamestring—
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes img semantics, with aria-label kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/result-icon.mdThe index of every part is at /llms.txt.