Installation
This component is primitive-agnostic — same source under both flavors.
Basic
Inspect
Optional. The team reads every note.
Growing with content
The field starts at three lines and grows with what is typed or pasted, stopping at ten lines before it scrolls. Browsers without field-sizing keep the minimum height and scroll from there. Resize the demo by typing a few paragraphs — the form below it does not jump.
Invalid
Inspect
Add at least 20 characters.
Sizes
Inspect
Disabled
Inspect
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default" | "compact" | from SizeProvider | Pins the text and padding to one step of the size ladder. |
| aria-invalid | boolean | — | Tints the hairline red until the field receives focus. |
| disabled | boolean | false | Dims the field and removes pointer interaction. |
| ...props | TextareaHTMLAttributes | — | Every native textarea attribute: value, placeholder, rows, onChange, etc. |