{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "spinner-component",
  "title": "Spinner Component",
  "description": "Thin inline loading spinner sized for buttons, cards, and compact panels.",
  "dependencies": [],
  "files": [
    {
      "path": "components/loaders/Spinner.tsx",
      "content": "import type { HTMLAttributes } from 'react';\n\ntype SpinnerProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {\n  size?: number;\n  label?: string;\n  showLabel?: boolean;\n};\n\nexport default function Spinner({\n  size = 20,\n  label = 'Loading',\n  showLabel = false,\n  className = '',\n  ...props\n}: SpinnerProps) {\n  return (\n    <div\n      {...props}\n      role=\"status\"\n      className={['inline-flex items-center gap-2.5 text-[color:var(--color-foreground,#030712)]', className].filter(Boolean).join(' ')}\n    >\n      <svg\n        viewBox=\"0 0 24 24\"\n        width={size}\n        height={size}\n        fill=\"none\"\n        className=\"shrink-0\"\n        aria-hidden=\"true\"\n      >\n        <g className=\"origin-center animate-spin motion-reduce:animate-none\">\n          <path d=\"M12 4.25c2.8 0 5.38 1.46 6.8 3.85\" stroke=\"currentColor\" strokeWidth=\"2.25\" strokeLinecap=\"round\" />\n          <path d=\"M12 4.25c2.8 0 5.38 1.46 6.8 3.85\" stroke=\"currentColor\" strokeWidth=\"2.25\" strokeLinecap=\"round\" opacity=\"0.65\" transform=\"rotate(120 12 12)\" />\n          <path d=\"M12 4.25c2.8 0 5.38 1.46 6.8 3.85\" stroke=\"currentColor\" strokeWidth=\"2.25\" strokeLinecap=\"round\" opacity=\"0.3\" transform=\"rotate(240 12 12)\" />\n        </g>\n      </svg>\n      <span className={showLabel ? 'text-sm font-medium' : 'sr-only'}>{label}</span>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/loaders/Spinner.tsx"
    }
  ],
  "categories": [
    "loaders"
  ],
  "type": "registry:component"
}