{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "status-dot",
  "title": "Status Dot",
  "author": "VenusUI",
  "description": "A colored status indicator with a label and an optional live pulse.",
  "files": [
    {
      "path": "registry/default/ui/status-dot.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst STATUS = {\n  online: { color: \"bg-emerald-500\", label: \"Online\" },\n  busy: { color: \"bg-rose-500\", label: \"Busy\" },\n  away: { color: \"bg-amber-500\", label: \"Away\" },\n  offline: { color: \"bg-muted-foreground/50\", label: \"Offline\" },\n} as const\n\ninterface StatusDotProps extends Omit<React.ComponentProps<\"span\">, \"children\"> {\n  status: keyof typeof STATUS\n  /** Text shown next to the dot. Defaults to the status name; pass `false` to hide it (it stays available to screen readers). */\n  label?: string | false\n  /** Pulse the dot, e.g. for \"live\". */\n  pulse?: boolean\n}\n\n/**\n * A colored status indicator with a text label, so meaning never relies on\n * color alone. The optional pulse stops with reduced motion. Works in Server\n * Components.\n */\nfunction StatusDot({ status, label, pulse = false, className, ...props }: StatusDotProps) {\n  const config = STATUS[status]\n  const text = label === false ? null : (label ?? config.label)\n  return (\n    <span data-slot=\"status-dot\" className={cn(\"inline-flex items-center gap-2 text-sm\", className)} {...props}>\n      <span aria-hidden=\"true\" className=\"relative flex size-2.5\">\n        {pulse ? <span className={cn(\"absolute inset-0 animate-ping rounded-full opacity-60 motion-reduce:hidden\", config.color)} /> : null}\n        <span className={cn(\"relative size-2.5 rounded-full\", config.color)} />\n      </span>\n      {text ? <span>{text}</span> : <span className=\"sr-only\">{config.label}</span>}\n    </span>\n  )\n}\n\nexport { StatusDot, type StatusDotProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "data-display"
  ],
  "type": "registry:ui"
}