Common status states
The built-in text labels are enough for most dashboards.
<CwStatusDot status="online" showLabel />
<CwStatusDot status="offline" showLabel />
<CwStatusDot status="loading" showLabel />
<CwStatusDot status="warning" showLabel />Status indicator for online, offline, loading and warning states. Colours come from the shared --cw-status-* tokens, so dots match the sensor and location cards. Offline and
warning use ring animations and loading pulses; all animation stops when the user prefers
reduced motion. Without a visible label the dot is announced as an image with an accessible
name.
<CwStatusDot status="online" showLabel />
<CwStatusDot status="offline" showLabel />
<CwStatusDot status="loading" showLabel />
<CwStatusDot status="warning" showLabel />
<!-- Offline status is animated (CSS pulse) -->
<CwStatusDot status="offline" size="lg" label="Offline (pulsing)" showLabel />CwStatusDot is the smallest status indicator in the library. Use it when you need a quick semantic state without the weight of a full badge or chip.
| API | Type | Details |
|---|---|---|
status Default: | 'online' | 'offline' | 'loading' | 'warning' | Semantic state to display. |
size Default: | 'sm' | 'md' | 'lg' | Dot size preset. |
label | string | Optional custom text label. |
showLabel Default: | boolean | Shows the text label next to the dot. |
Each snippet is a complete, working example you can paste into a Svelte 5 component.
The built-in text labels are enough for most dashboards.
<CwStatusDot status="online" showLabel />
<CwStatusDot status="offline" showLabel />
<CwStatusDot status="loading" showLabel />
<CwStatusDot status="warning" showLabel />Use a custom label when the domain language matters more than the generic status name.
<CwStatusDot
status="warning"
size="lg"
label="Sensor stale"
showLabel
/>