{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "half-sun",
  "title": "Half Sun Theme Toggle",
  "files": [
    {
      "path": "src/HalfSun.tsx",
      "content": "import { type ButtonHTMLAttributes, type CSSProperties } from \"react\";\n\nexport interface HalfSunProps extends Omit<\n  ButtonHTMLAttributes<HTMLButtonElement>,\n  \"children\"\n> {\n  duration?: number;\n  [key: `data-${string}`]: string | number | boolean | null | undefined;\n}\n\nexport function HalfSun({\n  duration = 500,\n  className,\n  type = \"button\",\n  title = \"Toggle theme\",\n  \"aria-label\": ariaLabel = \"Toggle theme\",\n  ...props\n}: HalfSunProps) {\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-half-sun--duration\": `${duration}ms` } as CSSProperties\n        }\n      >\n        <path\n          d={\n            \"M27.5 11.5v-7h-7L16 0l-4.5 4.5h-7v7L0 16l4.5 4.5v7h7L16 32l4.5-4.5h7v-7L32 16l-4.5-4.5zM16 25.4V6.6c5.2 0 9.4 4.2 9.4 9.4s-4.2 9.4-9.4 9.4z\"\n          }\n          className=\"origin-center transition-transform duration-(--toggles-half-sun--duration) [transition-timing-function:ease] dark:rotate-180\"\n        />\n      </svg>\n    </button>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/half-sun-theme-toggle.tsx"
    }
  ],
  "type": "registry:block"
}