Health Indicator

A status dot and label for service health with operational, degraded and down states mapped to success, warning and danger colors. Made for status pages.

src/registry/ui/health-indicator.tsx/r/health-indicator.json

Installation#

bash
npx shadcn@latest add @minidev/health-indicator

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/health-indicator.json

Usage#

tsx
import { HealthIndicator } from "@/components/ui/health-indicator"

export function Example() {
  return <HealthIndicator />
}

API reference#

HealthIndicator props
PropTypeDefault
status*"operational" | "degraded" | "down"-
labelstring-
classNamestring-

* required

Dependencies#

npm

React only

Built from

All alerts, toasts and empty states