{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea",
  "type": "registry:ui",
  "title": "Textarea",
  "description": "Auto-growing multiline text field styled as a seam entry well.",
  "registryDependencies": [
    "https://seamui.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/seam/ui/textarea.tsx",
      "content": "import type * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n// Base UI has no Textarea part, so this renders a native <textarea> styled as\n// a seam entry well. Inside a Base UI Field, use\n// <Field.Control render={<Textarea />} /> to get label/validation wiring.\nfunction Textarea({\n  className,\n  variant = \"default\",\n  ...props\n}: React.ComponentProps<\"textarea\"> & {\n  /**\n   * default — the debossed entry well.\n   * ghost   — naked inline field, for composing in place. Mirrors Input and\n   *           SelectTrigger's variant of the same name.\n   */\n  variant?: \"default\" | \"ghost\"\n}) {\n  return (\n    <textarea\n      data-slot=\"textarea\"\n      className={cn(\n        // field-sizing-content lets the field grow with its content.\n        \"flex field-sizing-content min-h-20 w-full min-w-0 resize-none rounded-md squircle border py-2.5 text-sm outline-none\",\n        // debossed — the field is carved into the surface (inset well shadow).\n        variant === \"default\" &&\n          \"border-border/60 bg-muted px-3.5 shadow-well focus-visible:border-ring\",\n        // transparent border keeps the box model stable when focus lands.\n        variant === \"ghost\" &&\n          \"border-transparent bg-transparent px-2 hover:bg-muted/50\",\n        \"placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground\",\n        \"focus-visible:ring-2 focus-visible:ring-ring/50\",\n        \"disabled:pointer-events-none disabled:opacity-50\",\n        \"aria-invalid:border-destructive aria-invalid:ring-destructive/30 data-[invalid]:border-destructive data-[invalid]:ring-destructive/30\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Textarea }\n",
      "type": "registry:ui",
      "target": "components/ui/textarea.tsx"
    }
  ]
}