Status signal
Health in three lamps: down, degraded, healthy. Unlit lamps are hairline rings and the one that applies is filled, so the position reads before the colour does. Running breathes the middle lamp and idle fills none, and the state is always written beside it.
When to use
- Service health, build and deploy status, queue state.
- Rows where a single coloured dot is too faint to read at a glance.
When not to use
- More than five states; use a `Badge` per state instead.
- Colour as the only signal; the word beside the lamps is part of the design.
Installation
pnpm dlx shadcn@latest add @caliper/status-signal
Adds its 2 files to components/ui/, each with its own stylesheet, and installs their packages. No account needed. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
StatusSignal
3 props
Also accepts the native props of its root element and a ref.
Keyboard
- No custom key handling; Tab and the native activation keys do the work.
Accessibility
It exposes status semantics, with aria-label and aria-hidden kept in step with state. Changes that matter are announced through a live region.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/status-signal.mdThe index of every part is at /llms.txt.