Indicators | StatusDot
StatusDot#
Description#
Visual status indicator with semantic tones, custom color (external data), pulse animation and outline for accessibility.
Props#
tone('neutral' | 'accent' | 'success' | 'warning' | 'error') — Semantic tone. Default:'neutral'.color(string) — Custom color in hex, RGB or CSS name. Overridestone.pulse(boolean) — Enables pulse animation. Default:false.label(string) — Accessible name. If not provided, the dot is decorative.size('sm' | 'md') — Dot size. Default:'sm'.outlined(boolean) — Draws outline to guarantee 3:1 contrast. Default:true.
Usage#
| |
Notes#
coloraccepts any valid CSS value: hexadecimal, rgb(), var().toneandcolorare mutually exclusive:colortakes precedence.- The
outlinedborder uses theui-border-strongcolor, which guarantees 3:1 contrast with the background. - Without
label, the component is hidden from screen readers (aria-hidden="true"). - The pulse respects
prefers-reduced-motionautomatically.