Status Dot
Alignment target:@astryxdesign/core v0.7.1 · StatusDot
Usage #
Import the component from its dedicated entry. Structural styles are loaded automatically.
Vue
<script setup lang="ts">
import { StatusDot } from '@astryx-vue/core/StatusDot'
</script>
<template>
<StatusDot label="Online" variant="success" />
</template>Anatomy
| Element | Description |
|---|---|
| Dot | Painted status dot that carries the selected semantic variant. |
| Status icon | Optional caller-supplied icon rendered inside the dot. |
Best practices #
| Guidance | Practice |
|---|---|
| Recommended | Always provide label; screen readers announce it via aria-label. |
| Recommended | Use the dot as a supporting signal alongside a visible text label. |
| Recommended | Use isPulsing for live, ongoing activity such as streaming or syncing. |
| Don't | Rely on color alone for critical status. Color is not perceivable by everyone. |
| Don't | Use many pulsing dots on the same screen; it creates visual noise. |
Examples #
Status Dot — Pulsing
isPulsing makes the dot breathe, for a state that is still in progress.
Status Dot — Status indicators
Online
Away
Offline
Unknown
A label beside the dot for online, away, offline, and unknown.
Status Dot — Variants
Neutral, info, success, warning, and error, side by side.