components/bits/StatusDot#
resolveTone()#
A tone passes through; anything else is a backend word.
Parameters#
| Parameter | Type |
|---|---|
status |
string |
Returns#
StatusDot()#
A status dot — the smallest way to say "this thing is in state X".
Replaces the bespoke borderRadius: '50%' Boxes scattered through the app,
each with its own diameter and its own idea of what green means.
Parameters#
| Parameter | Type |
|---|---|
props |
StatusDotProps |
Returns#
Element
StatusDotProps#
Properties#
label?#
Tooltip and accessible name. Without it the dot is decorative.
pulse?#
Slow pulse, for a genuinely in-flight state.
ring?#
A ring of the app ground around the dot, so it stays legible when it overlaps an icon or an avatar.
size?#
6 / 8 / 10px. The scale exists so dots line up across surfaces.
status#
Either a tone directly, or a raw backend status word to be normalised by
statusToToken ('RUNNING', 'ERROR', 'completed', …).