Installation
Nothing to add. This component ships as source in your download, so it is already in your project.
File
src/vui/textarea.tsxImport from
@viliha/vui-react/textareaThe exported names are at the top of that file. The import path is an alias the download's tsconfig.json points at src/vui/, so you can move that folder and change one line rather than every file that imports from it.
Usage
It auto-grows with content (field-sizing) and supports the same aria-invalid error styling as Input.
textarea-demo.tsx
import { Textarea } from "@viliha/vui-react/textarea";
export function Example() {
return <Textarea placeholder="Type your message here." />;
}Textarea props
It takes no props of its own. Everything you pass reaches the underlying <textarea> element, so every attribute it accepts works here unchanged and nothing is invented on top.