Ship-It Designv0.0.20

GitHub

StatusDot

Each example below is a real component instance — flip the theme toggle to see how it adapts.

Default#

Synced · 2m ago

All#

Loading…

Custom color#

Pass any CSS color via the color prop for one-off cases outside the semantic states (ok / warn / err / off / sync / accent). When set, color takes precedence over state at runtime. Invalid colors fall back to the default state; in dev, a console.warn names the offending value.

Loading…

Props#

Props for StatusDot
PropTypeDefaultDescription
stateenumokSemantic state. Default `'ok'`.
colorstring | undefinedArbitrary CSS color override. When set, replaces the state-derived color.
labelReactNodeOptional label rendered next to the dot.
pulseboolean | undefinedPulse the dot — used for `sync` state to indicate live activity.
sizenumber | undefined8Pixel diameter. Defaults to 8px.