{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "UI8Kit 3 Textarea primitive (unstyled), from @ui8kit/registry",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n// ui.textarea — shared TypeScript contract (types + classes helpers)\n\nimport { cn } from \"../../utils\";\n\n/** Textarea renders a native textarea; Value is the initial content. */\nexport type TextareaBaseProps = {\n  value?: string;\n  required?: boolean;\n  disabled?: boolean;\n  readOnly?: boolean;\n};\n\nexport type TextareaClassesInput = {\n  className?: string;\n};\n\n/** Compose Textarea classes without rendering — the cross-runtime `asChild` substitute. */\nexport function textareaClasses(input: TextareaClassesInput = {}): string {\n  return cn(input.className);\n}\n",
      "path": "kit/ui/textarea/textarea.shared.ts",
      "target": "kit/ui/textarea/textarea.shared.ts"
    },
    {
      "content": "// Code generated by @ui8kit/codegen. DO NOT EDIT.\n/**\n * Textarea is a multi-line native text field.\n */\n\nimport { forwardRef, type TextareaHTMLAttributes } from \"react\";\nimport { textareaClasses } from \"./textarea.shared\";\nimport { safeRest } from \"../../utils/expr\";\n\n/**\n * Textarea renders a native textarea; Value is the initial content.\n */\nexport type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, \"className\" | \"children\" | \"value\" | \"required\" | \"disabled\" | \"readOnly\"> & {\n  value?: string;\n  required?: boolean;\n  disabled?: boolean;\n  readOnly?: boolean;\n  className?: string;\n};\n\nexport const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(function Textarea(\n  { value, required, disabled, readOnly, className, ...rawRest },\n  ref\n) {\n  const rest = safeRest(rawRest, { blank: [\"id\", \"name\", \"placeholder\", \"rows\", \"aria-invalid\", \"aria-describedby\"] });\n  const cls = textareaClasses({ className });\n  return (\n    <textarea ref={ref} className={cls || undefined} required={required} disabled={disabled} readOnly={readOnly} {...rest} defaultValue={(value) ?? \"\"} />\n  );\n});\nTextarea.displayName = \"Textarea\";\n",
      "path": "kit/ui/textarea/textarea.tsx",
      "target": "kit/ui/textarea/textarea.tsx"
    }
  ],
  "meta": {
    "category": "kit",
    "kind": "primitive",
    "tags": [
      "react",
      "primitive"
    ]
  },
  "name": "kit-textarea",
  "registryDependencies": [
    "utils"
  ],
  "runtime": "react",
  "title": "Kit Textarea",
  "type": "registry:ui"
}
