Status dot

Free

The one mark for a run's state, queued, running, waiting on you, done, failed or stopped, at four sizes, so a plan, a log and an inbox read the same.

npx shadcn@latest add https://pixilui.com/r/status-dot.json

Preview

One node for every run state, so waiting on you looks the same everywhere.
State
Size

When to use

Use it when

  • Beside a run's name in a plan, a timeline, a list or an inbox (md 14, lg 16).
  • In tight places, log rows, table cells and nav counts, as the 8px dot (size="dot").
  • Running or waiting with a known share done: pass progress and the ring draws it.

Use something else when

  • A pill that also says the state in words: use Agent status, which is this node inside a pill.
  • Presence on a person: use the avatar's status.
  • Decoration: every node means a run's state.

Installation

Terminal
npx shadcn@latest add https://pixilui.com/r/status-dot.json

Adds status-dot.tsx, and installs clsx and tailwind-merge. The URL works in any app with a components.json, with no registry to add first.

Usage

example.tsx
import { StatusDot } from "@/components/pixilui/status-dot";

<StatusDot state={state} />

A fixed box per size (8, 12, 14, 16); it never stretches.

API reference

PropTypeDefault
stateRequired"queued" | "running" | "waiting" | "done" | "failed" | "stopped"–The run's state. Changing it plays the change: the color first, then the shape carries on from where it was.
size"dot" | "sm" | "md" | "lg""md"dot 8 (log rows, table cells), sm 12, md 14 (lists), lg 16 (plans beside 14/20 titles).
progressnumber–Share done, 0 to 100. Running and waiting draw an arc at it; running without it is a plain spinner.
labelstring–The node's accessible name when it stands alone, such as "Waiting on you". Leave it out when words sit beside the node: it is then hidden from assistive tech and the words carry the state.
frozenboolean–A still copy: no loops, results drawn.

Also takes every native <span> attribute, and a ref.

Keyboard

TabNever takes focus: the node is not interactive. Focus the row or link it sits in.

Accessibility

  • Beside words the node is aria-hidden and the words carry the state.
  • Alone, pass label: it becomes role="img" with that name; change the label with the state.
  • Live regions belong to the place that changes (a row's words, a Live tag), never the node.
  • Never color alone: every state has its own shape at every size (dashes or hollow, spinner or ripple, halo, check, exclamation, square).

Motion

  • Color goes first (150ms), then the shape carries on from where it was.
  • Leaving running, the spinner keeps its angle and slows to a stop while it grows into the ring (520ms); entering it, the first half turn speeds up from rest.
  • Done and failed fill the ring inward on the snappy spring, then the check or exclamation draws; failed shakes once. Stopped sets its square in 300ms.
  • Waiting breathes a halo (1800ms); a running dot sends out a ripple. One-shot motion plays only after a real change, never on first render.
  • Reduced motion: no loops, results drawn, changes instant.
Agent statusA run's status fills as it goes and closes into its result, so it never jumps.
BadgeSolid icons cut from the outlines, in the locked status colors.
ChipA removed chip folds away while the row closes the gap.

PixilUI Pro opens soon. The first 20 licenses are $99.