Put it in a Field, so the label and the error link to it. The box grows with the text and then scrolls.
The sample also uses Field. One command adds them with this item:
support-message.tsx
Textarea
<textarea>| Prop | Type | Default | Description |
|---|---|---|---|
| surface | "default""group" | — | |
| class | string | — | |
| size | "default""lg""sm" | — | The padding of the box: sm, default, or lg (the height follows the text). |
From Base UIField.ControlBase UI docs | |||
| on | — | Callback fired when the value changes. Use when controlled. | |
| ...props | <textarea> attributes | — | Every other attribute goes to the <textarea>, with a ref. |
| Tab | Moves focus into or out of the field. |
|---|---|
| Enter | Adds a new line. |
- InputPick Input for one line of text, such as a name, an email address, or a URL.
- Input GroupOne frame around an input or a text area and the parts next to it: icons, text, key hints, and buttons.
- FieldPuts a label, a control, and one line of help or an error together. FieldSet groups several controls under one legend.





