Feedback

StatusDot

Colored dot indicator that communicates static entity state or live realtime connection state with an accessible text label.

import { StatusDot } from '@lostgradient/cinder';
connectionfeedbackrealtimestatus
01

Overview

Reference usage

A semantic status indicator that pairs a colored dot with an accessible label.

Usage

svelte
<script lang="ts">
  import { StatusDot } from '@lostgradient/cinder';
</script>

<StatusDot status="online" label="Online" />

A status is a dot and a word, never a dot alone. With only status, the component renders a default word derived from it (online renders "Online", danger renders "Danger"), so <StatusDot status="online" /> shows the same dot and word as the example above. Pass label to say something more specific, such as "Healthy" or "Deploying", and pass labelVisible={false} only where the word sits right next to the dot in the surrounding text; the word stays the accessible name either way.

Status words

Status-dot owns the word-to-tone table for Interborough's status words, so a page passes a word and never picks a tone of its own. The word sets both the tone and the visible text:

svelte
<script lang="ts">
  import { StatusDot } from '@lostgradient/cinder';
</script>

<StatusDot word="Waiting on you" size="sm" />
<StatusDot word="Running, checking the result" size="sm" />
<StatusDot word="Done, refund not issued" size="sm" />

One word has one tone, identical in light and dark. A qualifier after a comma rides along on its base word (Running, checking the result is info, Missed runs, 4 is warning) unless the table lists the whole phrase (Done, refund not issued is neutral, because a finished run whose task was not achieved is never green). An explicit status or label still wins over what the word supplies.

A count or short phrase that belongs after the word goes in qualifier, which draws it as its own piece after the word, a space apart, in the muted text colour at the normal weight, with tabular numerals for a count. The visible text has no separator between them (no comma, no middle dot); the accessible name keeps a pause:

svelte
<script lang="ts">
  import { StatusDot } from '@lostgradient/cinder';
</script>

<StatusDot word="Missed runs" qualifier={4} size="sm" />

The dot shows "Missed runs" and then a muted "4", in the amber of "Missed runs", and is named "Missed runs, 4". The tone is read off the word, unless the word table lists the whole phrase (a qualified "Done" is neutral). A blank qualifier is ignored and 0 is shown.

Tone Words
warning (amber) Waiting on you, Missed runs, Disconnected, Needs attention, Needs sign-in, Waiting for a secret, Warning
info (solid neutral) Running, Running, checking the result, Live, Live, last event 1 s ago
pending (hollow ring) Waiting, Waiting for a signal, Scheduled, Standby, Reconnecting…
success (green dot) Done, Approved, Active, Available, Set, Delivered, Connected, Listening, Ready, Check met
danger (red) Failed, Failed for good, Gave up, Can't load, Can't find workflow, Not loaded, Couldn't check, Tripped, Critical
neutral Done, refund not issued, Check not met, Denied, Sent back, Expired, Canceled, Stopped, Paused, Off, Unavailable, Disabled, Missing, Needs setup, Ended, Retrying, Draining, No verdict, Blocked, Warned, Sanitized, Redacted, Flagged

Only warning and danger words are coloured; every other word, info included, is muted, so the dot carries the tone. The info dot is the neutral control-border colour, not the accent or a blue: emphasis comes from position and weight first, and hues are kept for what needs attention. Amber is only for waiting on you and Needs attention (Waiting for a secret is the one trigger word that is amber, because the trigger cannot start until a person acts), and red is reserved for failures to run or to load, and for a check that broke (Couldn't check) or a tripwire that halted a run (Tripped). Warning (amber) and Critical (red) are an event's severity in a history list, as its formatter or rule gave it, and mean nothing else: an info event carries no word, and Warned stays a check's outcome. The table is exported as statusDotWordTones, and statusForStatusDotWord(word) returns a word's status, or undefined for a word the table does not know (a word the table does not know renders a neutral dot).

Some words are scoped, and the page decides where they belong: Disabled is a plugin that is turned off, Set and Missing are a secret a plugin declared (a saved key is green, a missing one is neutral because it is a state to complete, not a failure), Ended is for chats only, Delivered and Retrying are for hooks only, Connected, Draining and Disconnected are for workers only, and Stopped also covers a worker that finished draining. Listening, Ready, Standby and Waiting for a secret are for a workflow's plugin trigger, which also reads Failed and Stopped: Listening and Ready are green, Standby (another instance runs the trigger) is the hollow ring, and Waiting for a secret is amber. Check met, Couldn't check, No verdict, Blocked, Warned, Sanitized, Redacted, Tripped and Flagged are the outcomes of a check on the Checks page, which also reads Check not met, Unavailable and Canceled: Check met is the one green outcome, a guardrail's action (Blocked, Warned, Sanitized, Redacted) and a flagged session are neutral because nothing there asks a person to act, and Tripped is red because a tripwire halted the run. Live and Reconnecting… are for the line above a streaming run's steps: <StatusDot word="Live, last event 1 s ago" />, and <StatusDot word="Reconnecting…" label="Reconnecting… last event 40 s ago" />, where the word sets the tone and label the text.

pending is a hollow ring (a 1.5px ring in --cinder-border-control over a transparent fill), so Waiting and Scheduled read differently from the solid Running dot. Under forced colors the solid dot uses Highlight and the hollow ring uses CanvasText; the word always carries the meaning.

Breaking changes

The "pending" status is now a hollow ring (it was a solid info-blue dot). Use the new "info" status for the solid dot.

The "building" status was renamed to "pending". Update any usage:

svelte
<!-- before -->
<StatusDot status="building" label="Deploying" />
<!-- after -->
<StatusDot status="pending" label="Deploying" />

The dot color is unchanged by that rename — only the status token name changed. (info has since become the neutral dot colour, COR-2314.)

Live preview

Status dot default word

Online Warning Danger Deploying

02

When to use

Use when
  • Indicating the current state of a list row, user, deployment, or other entity alongside its name.
  • Communicating status compactly when many indicators appear together without triggering live-region announcements.
  • Surfacing whether a realtime channel is connected, connecting, disconnected, or errored on a dashboard or app chrome.
  • Giving operators an at-a-glance health signal for a long-lived transport.
Avoid when
  • Counting items or showing a numeric value — use badge instead.
  • Announcing a transient status change — use toast-region or alert so assistive tech reads it.
03

Examples

Status dot default word

With only a status, a StatusDot renders a word derived from it, so a status is never a dot alone.

Status dot label and size

Visible label toggle and sm vs md sizes.

Result sentence

A status word on a list row stays muted so the dot carries the tone. A result sentence beside a dot, such as the outcome of a connection test, takes wordTone="status" so the words read in the status colour too.

Source status lines

A connected source reads a green dot with a muted “Connected”; a source whose sign-in expired reads an amber dot with “Needs sign-in”, the reason and the same type chip. The word, not the colour, carries the meaning.

Status dot statuses

All eight semantic status values.

Status words

Every status word in the word-to-tone table, one tone per word. A page passes the word and never picks a tone; a qualifier after a comma rides along, except that a qualified Done is always neutral.

04

Props

Props for status-dot
Name
Type
Default
Description
status 'online''offline''warning''danger''info''pending''neutral''success'
1 more members 'accent'
Semantic status. Drives color via data-cinder-status; defaults to a neutral dot or derives from connectionState.
word StatusDotWordLabel A status word from the word-to-tone table, such as "Waiting on you" or "Failed". It sets both the tone and the visible word, so a page never picks its own tone; a qualifier after a comma ("Running, checking the result") rides along. An explicit status or label wins over what the word supplies.
qualifier text A count or short phrase drawn as its own piece after the word, a space apart, in the muted text colour at the normal weight (tabular numerals for a count), with no separator in the visible text: word="Missed runs" with qualifier={4} shows "Missed runs" then a muted "4", and is named "Missed runs, 4". It does not change the word's tone, except that a qualified "Done" is neutral. A blank qualifier is ignored and 0 is shown. It has no effect without a word, or beside an explicit label.
connectionState 'connected' | 'connecting' | 'disconnected' | 'error' Realtime connection preset. Sets status, default label, and live-region semantics.
label text Human label. Rendered visibly when labelVisible is true; used as the accessible name either way. Defaults to a word derived from status (for example "Online"), so a bare StatusDot is a dot and a word, never a dot alone.
live boolean Use role="status" with polite live-region attributes. Defaults true when connectionState is provided.
labelVisible boolean true Whether to render the visible label.
size 'sm' | 'md' 'md' Dot size. Default 'md'.
wordTone 'muted' | 'status' 'muted' How the visible word is coloured: muted (the default) leaves a success, neutral, info or pending word muted so the dot carries the tone; status paints it in the status's text colour, for a result sentence such as a green "Found 3 tools". Warning and danger words are always coloured.