Data display
Live dot
A small status dot with an optional expanding ring — a real-time "live" indicator.
Purpose
Signal that something is live or active right now — a real-time feed, an online member, a running job. The expanding ring reads as "happening"; the steady dot reads as "state".
Live
Tones
brand (cyan) is the default live signal. The status tones map to the same palette as
Badge: success, info, warning, danger.
Brand Success Info Warning Danger
Steady dot
Turn the ring off with ping={false} for a plain state marker — "online" rather than
"streaming".
Online
Best practices
Do
- Pair the dot with a word — "Live", "Online" — so its meaning is not colour-only.
- Reserve the ping for things that are genuinely real-time; use the steady dot for state.
- Match the tone to meaning (
successonline,warningdegraded,dangerdown).
Don't
- Rely on colour alone to carry the status — add text or a
label. - Scatter several pinging dots in one view; the motion stops meaning anything.
- Use it for measurable progress — that is Progress.
Accessibility & motion
- With a
label, the dot rendersrole="img"with that label; without one it isaria-hiddenand assumes adjacent visible text carries the meaning. - The ring is decorative and only animates when motion is allowed — under
prefers-reduced-motionthe steady dot remains and the ring is hidden.
Props
LiveDot also accepts every native <span> attribute.
| Prop | Type | Default | Description |
|---|---|---|---|
ping | boolean | undefined | true | Show the expanding "ping" ring. Turn off for a plain status dot. |
label | string | undefined | — | Accessible label. When set, the dot is exposed as an image with this label; when omitted it is decorative (`aria-hidden`) — pair it with visible text. |
tone | "brand" | "success" | "info" | "warning" | "danger" | null | undefined | — | Semantic colour. `brand` (cyan) is the real-time "live" default. |
size | "sm" | "md" | "lg" | null | undefined | — | — |