{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "textarea",
  "title": "textarea",
  "description": "A multi-line field with the Input's fill, edge, focus ring and invalid state. sizing content grows with the text; fixed keeps its rows and resizes vertically.",
  "dependencies": [
    "class-variance-authority@^0.7"
  ],
  "registryDependencies": [
    "@dwellir/dwellir-theme",
    "@dwellir/utils"
  ],
  "files": [
    {
      "path": "components/ui/textarea.tsx",
      "content": "import { cva, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\nimport { cn } from '@/lib/utils';\n\n/*\n * A text area with the Input's look and states: the card fill, the 3:1 edge,\n * the focus ring, and a red edge under aria-invalid. A pill cannot hold lines,\n * so its corners read --radius-control capped at rounded-2xl. Touch screens\n * get text-lg at every width so iOS does not zoom in; a mouse gets text-sm from md.\n */\nconst textareaVariants = cva('ui-textarea text-lg md:pointer-fine:text-sm', {\n  variants: {\n    sizing: {\n      /* The default: the area grows with its text, in browsers with field-sizing. */\n      content: 'field-sizing-content resize-none',\n      /* The area keeps its rows; the reader drags it taller. */\n      fixed: 'field-sizing-fixed resize-y',\n    },\n  },\n  defaultVariants: { sizing: 'content' },\n});\n\nfunction Textarea({\n  className,\n  sizing,\n  ...props\n}: ComponentProps<'textarea'> & VariantProps<typeof textareaVariants>) {\n  return (\n    <textarea\n      data-slot=\"textarea\"\n      className={cn(textareaVariants({ sizing }), className)}\n      {...props}\n    />\n  );\n}\n\nexport { Textarea, textareaVariants };\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}