Status Dot
Alignment target:@astryxdesign/core v0.7.1 · StatusDot
<StatusDot
label="Online"
variant="success"
/>Props #
| Name | Type | Default | Description |
|---|---|---|---|
variant | StatusDotVariant | 'neutral' | The semantic color variant of the status dot. Optional: neutral, info, success, warning, error. |
label | string | - | Required accessible label. Announced by screen readers via aria-label. |
isPulsing | boolean | false | Whether the dot pulses to indicate an active state. |
icon | Component | - | Icon drawn inside the dot. Omit it to keep a color-only signal. The icon slot wins. The icon is hidden from assistive tech; the name stays label. |
tooltip | string | - | Tooltip text shown on hover and on keyboard focus, for when the status needs a sentence to explain it. |
Slots #
| Name | Description |
|---|---|
icon | Icon drawn centered inside the dot, in the variant ink. Use a different icon per status so the meaning survives without color. Hidden from screen readers, which read label. |
Native attributes #
The root element is a <span>.
The following are passed to the root element:
- HTML attributes.
aria-*attributes.data-*attributes.class.style.