Components
Status and capsules
A state is a coloured dot and a plain word; the colour lives only on the dot. Capsules are for labels and counts, never for warnings.
Status
Connected
tone="success" · On, done, live Sending
tone="progress" · Happening now Waiting for approval
tone="attention" · Waiting for someone Not sent
tone="stopped" · Did not happen; say what to do next beside it Received
tone="neutral" · Nothing to do yet Skipped
tone="off" · Ignored on purposeA task in a text
- Done: Write the premise
- Not yet: Write the treatment
Nobody ticks a task in a text that reads (Dabir’s answers, a proposal’s text), so it is a state, not a checkbox: a turquoise check when done and the neutral dot when not yet, in its bullet’s place. A screen reader hears the state in the page’s words.
Capsules
Round 3 Live 12 supporters
Backoffice comment states
received Receivedscheduled Scheduledsending Sendingreplied Repliedhandoff Needs a personerror Not sentskipped Skipped“Needs a person” waits for someone (amber dot); “Not sent” did not happen (red dot). Neither is copper, which stays for actions.
Code
Status · A state: coloured dot + plain word.
import { Status } from '#lib/components/ui/status/index.js';
<Status tone="success">Connected</Status>
<Status tone="attention">Needs a person</Status>
<Status tone="stopped">Not sent</Status>Badge · Labels and counts (capsules). Never warnings.
import { Badge } from '#lib/components/ui/badge/index.js';
<Badge>Round 3</Badge>
<Badge variant="success">Live</Badge>
<Badge>12 supporters</Badge>