Skip to content

StatusPill

Open .md
Live preview

Loading example…

Pill showing a status LED and its label; the label is hidden when the surrounding container (e.g. the topbar) is narrow.

import { StatusPill } from "@jcsoftdev/ui/atoms";

Single-component entry points tree-shake to just this component: @jcsoftdev/ui/atoms/status-pill.

<StatusPill status="success" label="Caja abierta" />
Prop Type Default Description
status * "danger" | "warning" | "success" | "idle"
label * string
onSelect (() => void) Without this the pill is decorative (disabled).
className string

* marks a required prop.

packages/ui/src/atoms/status-pill/status-pill.tsx