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: ok, warn, 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.

title adds supporting detail without replacing the visible label.

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 hydration.

Example

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

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.