{
  "$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 { splitProps, type JSX, type Component } from \"solid-js\";\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<JSX.InputHTMLAttributes<HTMLInputElement>, \"class\" | \"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  class?: string;\n  className?: string;\n};\n\nexport const Input: Component<InputProps> = (props) => {\n  const [local, rest] = splitProps(props, [\"type\", \"required\", \"disabled\", \"readOnly\", \"class\", \"className\"]);\n  const cls = () => inputClasses({ className: local.class ?? local.className });\n  return (\n    <input type={defaultIfEmpty(local.type, \"text\")} {...(cls() ? { class: cls() } : {})} required={local.required || undefined} disabled={local.disabled || undefined} readonly={local.readOnly || undefined} {...safeRest(rest, { blank: [\"id\", \"name\", \"placeholder\", \"min\", \"max\", \"step\", \"aria-invalid\", \"aria-describedby\"] })} />\n  );\n};\n",
      "path": "kit/ui/input/input.solid.tsx",
      "target": "kit/ui/input/input.solid.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "solid",
      "primitive"
    ]
  },
  "name": "kit-input",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "solid",
  "title": "Kit Input",
  "type": "registry:ui"
}
