Status Dot

Alignment target:@astryxdesign/core v0.7.1 · StatusDot

<StatusDot
  label="Online"
  variant="success"
/>

Props #

NameTypeDefaultDescription
variantStatusDotVariant'neutral'The semantic color variant of the status dot. Optional: neutral, info, success, warning, error.
labelstring-Required accessible label. Announced by screen readers via aria-label.
isPulsingbooleanfalseWhether the dot pulses to indicate an active state.
iconComponent-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.
tooltipstring-Tooltip text shown on hover and on keyboard focus, for when the status needs a sentence to explain it.

Slots #

NameDescription
iconIcon 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.