Skip to content
Eskais UI

Feedback

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

Installation

npx shadcn@latest add @eskais/status-pill
Brings alongtone
npm packagesclass-variance-authority@0.7.1

Usage

Import
import { StatusDot, StatusPill, StatusPing, statusPillVariants } from "@/components/ui/status-pill"

API reference

StatusPing

PropTypeDefault
pulseStatusPulse–
restartKeystring–

StatusDot

PropTypeDefault
labelrequiredWhat the dot means, read by screen readers and agents in place of the colour.string–
toneStatusTone–
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

PropTypeDefault
childrenReactNode–
toneStatusTone–
dotboolean–
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 StatusTone

Accessibility

  • 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.