status badges and indicators
The baseline pill: a text label with an optional leading icon in soft, solid and outline appearances, with no dot, count or action.
shadcn add @hazine/status-badge
Depends on class-variance-authority
1 of 6 shipped. Each take is a different structure, and the note under its title says how.
1 item
status badges and indicators
The baseline pill: a text label with an optional leading icon in soft, solid and outline appearances, with no dot, count or action.
shadcn add @hazine/status-badge
Depends on class-variance-authority
Planned 5
Status Dot with Label
No container: dot plus inline text at body size, with a dot shape that also varies by state (filled, ring, half) so states stay distinguishable without colour, and a pulse ring that runs only under motion-safe and becomes a static double ring otherwise.
Status Transition Menu
Editable rather than read-only: takes a transitions map so only valid next states are offered, shows a pending state on the badge while the change saves, and reverts with an inline error if it fails.
Status with Timestamp
Two-part information: state plus when it changed, with a self-updating relative time and an absolute date available through a keyboard-reachable tooltip.
Health Summary with Service Popover
Aggregate plus drill-down: derives one summary state from a services array and reveals the per-service breakdown on demand, instead of labelling a single record.
Stage Badge
Communicates order, not severity: takes a stages array and current index and renders pips for position in the sequence, with one neutral token treatment across all stages.