Textarea
Several lines of text. The height is a row count rather than a class, so a note field is the same height wherever it appears.
Reach for it
Several lines of free text: a comment, a note, a reason.
Not for
One line. A Textarea invites length the field does not want.
Rows
Four rows by default, which fits a short note without dominating a form. Raise it when the field is the main thing on the page, and wrap it in a Field to give it a label.
API reference
Textarea
| Prop | Type | Default | Description |
|---|---|---|---|
| ref | Ref<HTMLTextAreaElement> | - | React 19 passes `ref` as an ordinary prop, so `forwardRef` is dead weight. It also types cleanly under the consumers' compilers, where `forwardRef(...)` plus a `displayName` assignment did not. |
Also takes the standard attributes of a textarea, minus className and style.