{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Input primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.input — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Input renders a native input element (default type text). */\nexport type InputBaseProps = {\n  type?: \"text\" | \"email\" | \"password\" | \"search\" | \"tel\" | \"url\" | \"number\" | \"range\" | \"date\" | \"datetime-local\" | \"month\" | \"week\" | \"time\" | \"color\" | \"file\" | \"hidden\";\n  required?: boolean;\n  disabled?: boolean;\n  readOnly?: boolean;\n};\n\nexport type InputClassesInput = {\n  className?: string;\n};\n\n/** Compose Input classes without rendering — the cross-runtime `asChild` substitute. */\nexport function inputClasses(input: InputClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/input/input.shared.ts",
      "target": "kit/ui/input/input.shared.ts"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n/**\n * Input is a single-line native form control (checkbox/radio have their own primitives).\n */\n\nimport { forwardRef, type InputHTMLAttributes } from \"react\";\nimport { inputClasses } from \"./input.shared\";\nimport { defaultIfEmpty, safeRest } from \"../../utils/expr\";\n\n/**\n * Input renders a native input element (default type text).\n */\nexport type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, \"className\" | \"children\" | \"type\" | \"required\" | \"disabled\" | \"readOnly\"> & {\n  type?: \"text\" | \"email\" | \"password\" | \"search\" | \"tel\" | \"url\" | \"number\" | \"range\" | \"date\" | \"datetime-local\" | \"month\" | \"week\" | \"time\" | \"color\" | \"file\" | \"hidden\";\n  required?: boolean;\n  disabled?: boolean;\n  readOnly?: boolean;\n  className?: string;\n};\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(function Input(\n  { type, required, disabled, readOnly, className, ...rawRest },\n  ref\n) {\n  const rest = safeRest(rawRest, { blank: [\"id\", \"name\", \"placeholder\", \"min\", \"max\", \"step\", \"aria-invalid\", \"aria-describedby\"] });\n  const cls = inputClasses({ className });\n  return (\n    <input ref={ref} type={defaultIfEmpty(type, \"text\")} className={cls || undefined} required={required} disabled={disabled} readOnly={readOnly} {...rest} />\n  );\n});\nInput.displayName = \"Input\";\n",
      "path": "kit/ui/input/input.tsx",
      "target": "kit/ui/input/input.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "react",
      "primitive"
    ]
  },
  "name": "kit-input",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "react",
  "title": "Kit Input",
  "type": "registry:ui"
}
