{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "spinner",
  "title": "Spinner",
  "author": "VenusUI",
  "description": "A circular loading indicator in three sizes that inherits the text color.",
  "files": [
    {
      "path": "registry/default/ui/spinner.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst SIZES = { sm: \"size-4\", md: \"size-6\", lg: \"size-8\" } as const\n\ninterface SpinnerProps extends Omit<React.ComponentProps<\"span\">, \"children\"> {\n  size?: keyof typeof SIZES\n  /** Announced to screen readers. */\n  label?: string\n}\n\n/**\n * A circular loading indicator. Inherits the text color. Announced as a\n * status message. With reduced motion it spins slowly instead of stopping,\n * so it still reads as \"in progress\".\n */\nfunction Spinner({ size = \"md\", label = \"Loading\", className, ...props }: SpinnerProps) {\n  return (\n    <span role=\"status\" data-slot=\"spinner\" className={cn(\"inline-flex\", className)} {...props}>\n      <svg\n        viewBox=\"0 0 24 24\"\n        fill=\"none\"\n        aria-hidden=\"true\"\n        className={cn(SIZES[size], \"animate-spin motion-reduce:[animation-duration:3s]\")}\n      >\n        <circle cx=\"12\" cy=\"12\" r=\"9.5\" stroke=\"currentColor\" strokeOpacity=\"0.2\" strokeWidth=\"2.5\" />\n        <path d=\"M21.5 12A9.5 9.5 0 0 0 12 2.5\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" />\n      </svg>\n      <span className=\"sr-only\">{label}</span>\n    </span>\n  )\n}\n\nexport { Spinner, type SpinnerProps }\n",
      "type": "registry:ui"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "loaders"
  ],
  "type": "registry:ui"
}