Skip to content

Status Dot

A decorative dot that marks a status beside its visible text.

Published
hero.tsx

Usage guidelines

  • Pair the dot with visible text: StatusDot is always hidden from assistive technology and accepts no ARIA props or role. The text next to it carries the status for every user.
  • Map the status, not the color: success, warning, error, normal and disabled set the fill, border and glow together for both themes. Do not recolor the dot with classes.
  • Keep announcements with the feature: A status that changes while the user watches is announced by the feature's live region or status owner, not by the dot.
  • Show a skeleton while the status loads: StatusDotSkeleton takes the same size and stays decorative. Keep a text label such as "Checking" beside it; any pulse comes from the caller.

Anatomy

tsx
tsx

Examples

Statuses

Five statuses cover run results and availability. Each row keeps its label next to the dot.

  • Knowledge retrievalSucceeded
  • HTTP requestRetried twice
  • CodeFailed
  • LLMRunning
  • TemplateSkipped
statuses.tsx

Sizes

small (6px) suits extra-small text, and medium (8px, the default) suits regular labels.

Syncingsmall · 6px
Syncingmedium · 8px
sizes.tsx

Skeleton

StatusDotSkeleton holds the place of a dot while the status loads, and the label says so. The pulse is a caller class that stops when the user prefers reduced motion.

  • Web appIn service
  • Backend service APIChecking
skeleton.tsx

API reference

StatusDot

A decorative status dot hidden from assistive technology. Renders a <span> element.

Always pair with visible status text owned by the surrounding component.

Props
PropTypeDefaultDetails
roleundefinedNo default
tabIndexundefinedNo default
status'disabled' | 'error' | 'normal' | 'success' | 'warning''success'
size'medium' | 'small''medium'

StatusDotSkeleton

Props
PropTypeDefaultDetails
roleundefinedNo default
tabIndexundefinedNo default
size'medium' | 'small''medium'