Status Dot @astryx-svelte/core v0.3.0 · StatusDot

Usage

A small colored dot that communicates status like online/offline presence or severity levels. Supports five semantic variants and an optional pulse animation. Always pair with a visible text label, as color alone should not carry meaning.
ts
import { StatusDot } from '@astryx-svelte/core';

Best practices

GuidancePractices
DoAlways pair with a visible text label so status is not conveyed by color alone.
DoProvide a descriptive label prop for screen reader accessibility.
Don'tUse the pulse animation for purely decorative purposes; reserve it for states that require immediate attention.
Don'tRely on color alone to communicate status; always include text.

Examples

Common configurations, variations, and states.
StatusDot — Pulsing
Animated pulsing dots for live, processing, and error states.
StatusDot — Status Indicators
Labeled status dot list for presence indicators like online, away, and offline.
StatusDot — Variants
All five semantic color variants displayed in a row.