{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "health-indicator",
  "type": "registry:ui",
  "title": "Health indicator",
  "description": "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.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/status-dot.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/health-indicator.tsx",
      "type": "registry:ui",
      "target": "components/ui/health-indicator.tsx",
      "content": "\"use client\"\nimport { cn } from \"@/lib/utils\"\nimport { StatusDot } from \"@/components/ui/status-dot\"\n\nfunction HealthIndicator({\n  status,\n  label,\n  className,\n}: {\n  status: \"operational\" | \"degraded\" | \"down\"\n  label?: string\n  className?: string\n}) {\n  const tone = status === \"operational\" ? \"success\" : status === \"degraded\" ? \"warning\" : \"danger\"\n  return (\n    <span data-slot=\"health-indicator\" className={cn(\"inline-flex items-center gap-2 text-sm text-fg\", className)}>\n      <StatusDot tone={tone} />\n      <span className=\"capitalize text-fg-muted\">{label ?? status}</span>\n    </span>\n  )\n}\nexport { HealthIndicator }\n"
    }
  ]
}
