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
@marktiderman/genesis-ui/patternsimport { LiveIndicator } from "@marktiderman/genesis-ui/patterns";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.
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| detail | string | — | Secondary text after the label, muted — "last photo 2m ago". |
| label | string | — | Text beside the dot. Default follows the state: "Live", "Idle" or "Offline". |
| live | boolean | true | Whether the thing is live now. Default true. Shorthand for `state`: true ≡ "live", false ≡ "idle". |
| state | enum | — | 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`). |
| variant | enum | pill | `pill` (default): dot + label in a rounded chip. `dot`: the dot alone, label read by screen readers only. |