{
  "$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// 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"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n/**\n * Checkbox is a native input[type=checkbox]; pair it with Label.\n */\n\nimport { forwardRef, type InputHTMLAttributes } from \"react\";\nimport { checkboxClasses } from \"./checkbox.shared\";\nimport { safeRest } from \"../../utils/expr\";\n\n/**\n * Checkbox renders input[type=checkbox].\n */\nexport type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"className\" | \"children\" | \"checked\" | \"required\" | \"disabled\"> & {\n  checked?: boolean;\n  required?: boolean;\n  disabled?: boolean;\n  className?: string;\n};\n\nexport const Checkbox = forwardRef<HTMLInputElement, CheckboxProps>(function Checkbox(\n  { checked, required, disabled, className, ...rawRest },\n  ref\n) {\n  const rest = safeRest(rawRest, { blank: [\"id\", \"name\", \"aria-invalid\", \"aria-describedby\"] });\n  const cls = checkboxClasses({ className });\n  return (\n    <input ref={ref} type=\"checkbox\" className={cls || undefined} checked={checked} required={required} disabled={disabled} {...rest} />\n  );\n});\nCheckbox.displayName = \"Checkbox\";\n",
      "path": "kit/ui/checkbox/checkbox.tsx",
      "target": "kit/ui/checkbox/checkbox.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "react",
      "primitive"
    ]
  },
  "name": "kit-checkbox",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "react",
  "title": "Kit Checkbox",
  "type": "registry:ui"
}
