Textarea
Edit multiline text with a label, resizing, and native form attributes.
Basic usage
Set the initial height with rows and cap the length with maxlength. The native onInput event updates the counter in this example.
0 / 140
API
Key props and defaults.
| Prop | Values and behavior | Default |
|---|---|---|
rows | number | 4 |
resize | vertical | horizontal | both | none | vertical |
autoresize | boolean | false |
maxlength | number | — |
value / defaultValue | string | — |