Status Badge

A pill that names the state of a service, with a live dot.

  • WebsiteOperational
  • APIDegraded
  • WebhooksOutage
  • DashboardMaintenance

Installation#

pnpm dlx shadcn@latest add @balick/status-badge

Or pass the full URL: https://ui.balick.me/r/status-badge.json

Usage#

import { StatusBadge } from "@/components/ui/status-badge"

export function ApiStatus() {
  return <StatusBadge status="operational" />
}

Props#

PropTypeDefault
status

The state of the service. Required.

"operational" | "degraded" | "outage" | "maintenance"—
children

Replaces the default label.

React.ReactNode—