Cloud|

@k2b/ui

Status badges

Semantic status presentation in chip, dot, and text forms.

StatusBadge@k2b/ui

One semantic status vocabulary with chip, dot, and text variants.

HealthyDegradedRunningOffline

TSX

Copy
<StatusBadge label="Healthy" tone="ok" />
<StatusBadge label="Degraded" tone="degraded" />
<StatusBadge label="Running" tone="running" variant="dot" />
<StatusBadge label="Offline" tone="error" variant="text" />

StatusBadge presents one semantic status vocabulary as a compact chip, dense dot, or plain text.

Use status badges

Use a chip in cards and normal tables. Use variant="dot" in dense rows. Use variant="text" when the surrounding surface already provides enough structure.

Choose the tone by meaning: info, ok, warning, error, degraded, running, or neutral.

Import

tsx
import { StatusBadge } from "@k2b/ui";

Labels and icons

Pass label as visible status text. Default icons follow the tone and can be replaced or removed with icon. The neutral tone uses ti ti-alert-square-rounded.

title adds supporting detail without replacing the visible label.

Required props are label: JSX.Element and tone: "info" | "ok" | "warning" | "error" | "degraded" | "running" | "neutral". variant?: "chip" | "dot" | "text" defaults to chip. icon?: string | null overrides the default icon; null removes it. title?: string and class?: string add supporting text and layout classes.

Accessibility

Color and icons are supplementary. The visible label must state the result without either.

Do not use a status badge as a button or link. Put the interactive element around it when navigation is required.

Runtime

Status badges render complete server HTML and need no browser code.

Example

tsx
<StatusBadge label="Healthy" tone="ok" />
<StatusBadge label="Running" tone="running" variant="dot" />
<StatusBadge label="Offline" tone="error" variant="text" />

Use tone="info" for informational messages. It uses the blue information palette without the animation of the running state.

Connect a coding agent

The Cloud skill provides compact working instructions. MCP supplies exact current documentation when details matter.

CLI command
bunx skills add https://docs.example.com

This command installs the working instructions published by this website in the selected coding agent.

For exact, current details, also connect the MCP server through one of the agent tabs.

Installation uses the open-source Vercel Skills CLI.

The skill and MCP complement each other: the skill describes workflows, while MCP supplies current documentation.