{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "simple",
  "title": "Simple Theme Toggle",
  "files": [
    {
      "path": "src/Simple.tsx",
      "content": "import { type ButtonHTMLAttributes, type CSSProperties, useId } from \"react\";\n\nexport interface SimpleProps extends Omit<\n  ButtonHTMLAttributes<HTMLButtonElement>,\n  \"children\"\n> {\n  duration?: number;\n  [key: `data-${string}`]: string | number | boolean | null | undefined;\n}\n\nexport function Simple({\n  duration = 500,\n  className,\n  type = \"button\",\n  title = \"Toggle theme\",\n  \"aria-label\": ariaLabel = \"Toggle theme\",\n  ...props\n}: SimpleProps) {\n  const toggleId = useId();\n\n  const clipMainId = `toggles.dev-simple-main-${toggleId}`;\n\n  return (\n    <button\n      type={type}\n      title={title}\n      aria-label={ariaLabel}\n      className={className}\n      {...props}\n    >\n      <svg\n        width=\"1em\"\n        height=\"1em\"\n        viewBox=\"0 0 32 32\"\n        aria-hidden=\"true\"\n        fill={\"currentColor\"}\n        style={\n          { \"--toggles-simple--duration\": `${duration}ms` } as CSSProperties\n        }\n      >\n        <defs>\n          <clipPath id={clipMainId}>\n            <path\n              d={\"M0-5h55v37h-55zm32 12a1 1 0 0025 0 1 1 0 00-25 0\"}\n              className=\"transition-[d,translate] duration-(--toggles-simple--duration) [transition-timing-function:cubic-bezier(0,0,0.15,1.25)] dark:[d:path('M-18-1h55v37h-55zm32_12a1_1_0_0025_0_1_1_0_00-25_0')] dark:not-supports-[d:path('M0_0')]:-translate-x-[19px] dark:not-supports-[d:path('M0_0')]:translate-y-[5px]\"\n            />\n          </clipPath>\n        </defs>\n        <g clipPath={`url(#${clipMainId})`}>\n          <circle cx={16} cy={16} r={15} />\n        </g>\n      </svg>\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/simple-theme-toggle.tsx"
    }
  ],
  "type": "registry:block"
}