{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea",
  "title": "Textarea",
  "description": "A multi-line text field in the Input's surface, wired into Field like Input is.",
  "dependencies": [
    "@base-ui/react@^1.9.0"
  ],
  "registryDependencies": [
    "https://sproutboat.com/ikada/r/theme.json",
    "https://sproutboat.com/ikada/r/cn.json"
  ],
  "files": [
    {
      "path": "registry/ikada/ui/textarea.tsx",
      "content": "\"use client\";\n\nimport { Input as BaseInput } from \"@base-ui/react/input\";\nimport type { ComponentProps } from \"react\";\nimport { cn, fieldSurface, focusRing } from \"@/components/ikada/lib/cn\";\n\nexport interface TextareaProps extends Omit<ComponentProps<\"textarea\">, \"className\"> {\n  className?: string;\n  /** Marks the field invalid: danger ring and aria-invalid. Prefer the Field error. */\n  invalid?: boolean;\n  /** Monospace face for code, SQL and JSON. */\n  mono?: boolean;\n}\n\n/**\n * A multi-line text field in the Input's surface, wired into Field like Input is. Grows only\n * when the reader drags it.\n */\nexport function Textarea({ invalid, mono, className, ref, ...props }: TextareaProps) {\n  return (\n    <BaseInput\n      data-slot=\"textarea\"\n      render={<textarea />}\n      ref={ref as never}\n      aria-invalid={invalid || undefined}\n      className={cn(\n        \"min-h-20 w-full min-w-0 resize-y px-3 py-2 text-sb-base\",\n        fieldSurface,\n        \"placeholder:text-fg-muted pointer-coarse:text-[16px]\",\n        \"read-only:bg-hover\",\n        focusRing,\n        mono && \"font-mono text-sb-sm leading-relaxed\",\n        className,\n      )}\n      {...(props as object)}\n    />\n  );\n}\n",
      "type": "registry:ui",
      "target": "@components/ikada/textarea.tsx"
    }
  ],
  "categories": [
    "forms"
  ],
  "type": "registry:ui"
}