Skip to content

Status

ztui status dots, badges, and a status list in several states

The status family renders a small set of states (ok, warn, error, info, pending, …) as a colored dot, a labelled badge, or a list of items.

import { StatusBadge, StatusDot, StatusList } from "@huyz0/ztui/react";
<StatusDot state="ok" />
<StatusBadge state="warn" label="Degraded" />
<StatusList
items={[
{ state: "ok", label: "API", detail: "142ms" },
{ state: "error", label: "Worker", detail: "timeout" },
]}
/>;
  • state — the status key driving the glyph and color.
  • label (badge) / items (list) — text content.
  • glyphSet — swap the per-state glyphs.

Full demo →