{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "ThemeToggle: Button + Lucide icons (data-ui8kit=\"theme-toggle\" behaviour).",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/build.ts from src/map.ts + variants/. DO NOT EDIT.\nimport type { ComponentProps } from \"react\";\nimport { Button as Prim } from \"../kit/ui/button/button\";\nimport { Icon } from \"../kit/ui/icon/icon\";\nimport { cn } from \"../kit/utils\";\nimport { rc } from \"./recipes\";\n\nexport type ThemeToggleProps = Omit<ComponentProps<typeof Prim>, \"children\"> & { variant?: string; size?: string; \"aria-label\"?: string; className?: string };\n\n/** ThemeToggle: Button + Lucide icons (data-ui8kit=\"theme-toggle\" behaviour). */\nexport function ThemeToggle({ variant, size, \"aria-label\": ariaLabel, className, ...rest }: ThemeToggleProps) {\n  return (\n    <Prim type=\"button\" className={cn(rc(\"themetoggle\", { variant, size }), className)} data-ui8kit=\"theme-toggle\" aria-label={ariaLabel || \"Dark mode\"} aria-pressed=\"false\" {...rest}>\n      <Icon className=\"hidden size-5 dark:block\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"4\"></circle><path d=\"M12 2v2\"></path><path d=\"M12 20v2\"></path><path d=\"m4.93 4.93 1.41 1.41\"></path><path d=\"m17.66 17.66 1.41 1.41\"></path><path d=\"M2 12h2\"></path><path d=\"M20 12h2\"></path><path d=\"m6.34 17.66-1.41 1.41\"></path><path d=\"m19.07 4.93-1.41 1.41\"></path></svg></Icon><Icon className=\"block size-5 dark:hidden\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\"><path d=\"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z\"></path></svg></Icon>\n    </Prim>\n  );\n}\n",
      "path": "compose/theme-toggle.tsx",
      "target": "compose/theme-toggle.tsx"
    }
  ],
  "meta": {
    "category": "primitives",
    "kind": "primitive",
    "tags": [
      "react",
      "primitive"
    ]
  },
  "name": "theme-toggle",
  "registryDependencies": [
    "kit-button",
    "kit-icon",
    "recipes",
    "utils"
  ],
  "runtime": "react",
  "title": "Theme Toggle",
  "type": "registry:ui"
}
