StatusBadge
Status-specific badge for progress/health states — the OKR-style "on track / at risk / off track" goal vocabulary plus common task-lifecycle states ("done", "blocked", "in progress"). `Badge` answers "what color is this badge"; `StatusBadge` answers "what does this business status look like as a badge" — it owns the status → semantic-token mapping so consumers pass a status name instead of hand-rolling their own `status-to-color` lookup (the pattern this component exists to retire). Colors are token-driven — the same `bg-success` / `bg-warning` / `bg-destructive` / `bg-info` semantic Tailwind families `Badge` already uses, backed by `@marktiderman/genesis-design-system`'s `status` tokens — no raw hex here.
packages/ui/src/components/patterns/status-badge.tsx
@marktiderman/genesis-ui/patternsimport { StatusBadge } from "@marktiderman/genesis-ui/patterns";react-docgen-typescript.StatusBadge
Status-specific badge for progress/health states — the OKR-style "on track / at risk / off track" goal vocabulary plus common task-lifecycle states ("done", "blocked", "in progress"). `Badge` answers "what color is this badge"; `StatusBadge` answers "what does this business status look like as a badge" — it owns the status → semantic-token mapping so consumers pass a status name instead of hand-rolling their own `status-to-color` lookup (the pattern this component exists to retire). Colors are token-driven — the same `bg-success` / `bg-warning` / `bg-destructive` / `bg-info` semantic Tailwind families `Badge` already uses, backed by `@marktiderman/genesis-design-system`'s `status` tokens — no raw hex here.
| Prop | Type | Default | Description |
|---|---|---|---|
| status* | enum | — | Which status to render. Drives the tint via `statusBadgeVariants`. |
statusBadgeVariants
| Prop | Type | Default | Description |
|---|---|---|---|
| class | ClassValue | — | |
| className | ClassValue | — | |
| status | "onTrack" | "atRisk" | "offTrack" | "done" | "blocked" | "inProgress" | null | — |
StatusBadgeStatus
The domain status vocabulary `StatusBadge` understands. A `Pick` (not a hand-copied literal union) of `@marktiderman/genesis-design-system`'s `status` tokens, so removing/renaming one of these keys upstream breaks this file's typecheck instead of silently drifting.
No declared props.