{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea",
  "title": "Textarea",
  "description": "Auto-sizing textarea that reads Field wiring.",
  "dependencies": [],
  "registryDependencies": [
    "@hjconsult/lib",
    "@hjconsult/field",
    "@hjconsult/input"
  ],
  "files": [
    {
      "path": "src/components/textarea/index.tsx",
      "content": "'use client'\n\nimport type { ComponentPropsWithoutRef, Ref } from 'react'\nimport { cn } from '../../lib'\nimport { useFieldControl } from '../field/context'\nimport { inputClassName } from '../input'\n\nexport interface TextareaProps extends ComponentPropsWithoutRef<'textarea'> {\n  /** Grow with content (`field-sizing: content`). */\n  autoSize?: boolean\n  ref?: Ref<HTMLTextAreaElement>\n}\n\nexport function Textarea({ className, autoSize = true, rows = 4, ...props }: TextareaProps) {\n  const wired = useFieldControl(props)\n  return (\n    <textarea\n      rows={rows}\n      className={cn(\n        inputClassName,\n        'min-h-28 resize-y py-3 leading-relaxed',\n        autoSize && 'field-sizing-content',\n        className,\n      )}\n      {...wired}\n    />\n  )\n}\n",
      "type": "registry:ui",
      "target": "hj/components/textarea/index.tsx"
    }
  ],
  "cssVars": {},
  "type": "registry:ui"
}