Genesis
@beta

LiveIndicator

LiveIndicator — the "● Live" chip for streams, classes and sessions that are happening now. The dot pulses while live; idle it goes muted and still, offline fainter still, so the state reads at a glance as well as by colour. `detail` carries a short secondary line ("last photo 2m ago"). `role="status"` with `aria-live="polite"` so a screen reader announces the change from offline to live without stealing focus.

packages/ui/src/components/patterns/live-indicator.tsx

Import
Subpath export: @marktiderman/genesis-ui/patterns
import { LiveIndicator } from "@marktiderman/genesis-ui/patterns";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

LiveIndicator

LiveIndicator — the "● Live" chip for streams, classes and sessions that are happening now. The dot pulses while live; idle it goes muted and still, offline fainter still, so the state reads at a glance as well as by colour. `detail` carries a short secondary line ("last photo 2m ago"). `role="status"` with `aria-live="polite"` so a screen reader announces the change from offline to live without stealing focus.

PropTypeDefaultDescription
classNamestring—
detailstring—Secondary text after the label, muted — "last photo 2m ago".
labelstring—Text beside the dot. Default follows the state: "Live", "Idle" or "Offline".
livebooleantrueWhether the thing is live now. Default true. Shorthand for `state`: true ≡ "live", false ≡ "idle".
stateenum—Three-way state; wins over `live` when both are given. `live` pulses in the destructive colour, `idle` is a still muted dot, `offline` a fainter one (`bg-muted-foreground/50`).
variantenumpill`pill` (default): dot + label in a rounded chip. `dot`: the dot alone, label read by screen readers only.
Storybook
Storybook hosts the canonical visual reference with controls for every variant.