{"$schema":"https://ui.shadcn.com/schema/registry-item.json","author":"Eduardo Calvo <edu@smoothui.dev>","css":{},"dependencies":["@base-ui/react"],"description":"Multi-line Textarea for SmoothUI matching Input / FieldControl styling. Base-only.","devDependencies":[],"files":[{"content":"\"use client\";\n\nimport { Input as InputPrimitive } from \"@base-ui/react/input\";\nimport { cn } from \"@/lib/utils\";\nimport type { ComponentProps } from \"react\";\n\nexport type TextareaProps = Omit<\n  ComponentProps<typeof InputPrimitive>,\n  \"className\" | \"type\" | \"size\"\n> & {\n  /** Optional CSS class names */\n  className?: string;\n  /** Visible rows hint (maps to rows attribute) */\n  rows?: number;\n};\n\n/** Same surface language as Input / FieldControl. */\nconst TEXTAREA_CLASS =\n  \"flex min-h-20 w-full min-w-0 resize-y rounded-md border border-foreground/25 bg-background px-3 py-2 text-base md:text-sm shadow-xs outline-none state-transition placeholder:text-muted-foreground/60 focus-visible:border-ring focus-ring disabled:cursor-not-allowed disabled:border-foreground/20 disabled:bg-muted disabled:text-muted-foreground disabled:placeholder:text-muted-foreground/70 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40\";\n\n/**\n * SmoothUI Textarea — Base UI Input rendered as multiline. No Radix twin.\n */\nconst Textarea = ({ className, rows = 4, ...props }: TextareaProps) => (\n  <InputPrimitive\n    className={cn(TEXTAREA_CLASS, className)}\n    data-slot=\"textarea\"\n    render={<textarea rows={rows} />}\n    {...props}\n  />\n);\n\nexport default Textarea;\n","path":"index.tsx","target":"components/smoothui/textarea/index.tsx","type":"registry:ui"}],"name":"textarea","registryDependencies":["https://smoothui.dev/r/tokens.json"],"title":"Textarea","type":"registry:ui"}