{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Checkbox primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "<!-- Code generated by @ui8kit/codegen. DO NOT EDIT. -->\n<!--\n  Checkbox renders input[type=checkbox].\n-->\n<script lang=\"ts\" module>\n\n  export type CheckboxProps = {\n    checked?: boolean;\n    required?: boolean;\n    disabled?: boolean;\n    class?: string;\n    [key: string]: unknown;\n  };\n</script>\n\n<script lang=\"ts\">\n  import { checkboxClasses } from \"./checkbox.shared\";\n  import { safeRest } from \"../../utils/expr\";\n\n  let {\n    checked,\n    required,\n    disabled,\n    class: className,\n    ...rawRest\n  }: CheckboxProps = $props();\n\n  const rest = $derived(safeRest(rawRest, { blank: [\"id\", \"name\", \"aria-invalid\", \"aria-describedby\"] }));\n  const cls = $derived(checkboxClasses({ className }));\n</script>\n\n<input type=\"checkbox\" {...(cls ? { class: cls } : {})} checked={checked || undefined} required={required || undefined} disabled={disabled || undefined} {...rest} />\n",
      "path": "kit/ui/checkbox/Checkbox.svelte",
      "target": "kit/ui/checkbox/Checkbox.svelte"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.checkbox — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Checkbox renders input[type=checkbox]. */\nexport type CheckboxBaseProps = {\n  checked?: boolean;\n  required?: boolean;\n  disabled?: boolean;\n};\n\nexport type CheckboxClassesInput = {\n  className?: string;\n};\n\n/** Compose Checkbox classes without rendering — the cross-runtime `asChild` substitute. */\nexport function checkboxClasses(input: CheckboxClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/checkbox/checkbox.shared.ts",
      "target": "kit/ui/checkbox/checkbox.shared.ts"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "svelte",
      "primitive"
    ]
  },
  "name": "kit-checkbox",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "svelte",
  "title": "Kit Checkbox",
  "type": "registry:ui"
}
