Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/patterns
import { StatusBadge } from "@marktiderman/genesis-ui/patterns";
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
status*enum—Which status to render. Drives the tint via `statusBadgeVariants`.

statusBadgeVariants

PropTypeDefaultDescription
classClassValue—
classNameClassValue—
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.

Storybook
Storybook hosts the canonical visual reference with controls for every variant.