Description
- Textarea allows a user to enter and edit multi-line free text.
- For example, notes about clients or a short email message.
Anatomy
Anatomy
Size
Textarea is available in sizes S, M, and L.
Height
The textarea height can be set based on the length of text you expect most users to input.
Minimum height (default)
Expandable
Textarea can be set to automatically expand to reveal long text strings entered by the user. This behavior is switched off by default.
Expandable on
Expandable on with max rows
Resizer (grab handle**)**
If it makes sense for your layout and use case, a grab handle can be switched on to allow users adjust the size of the textarea container themselves. Do not use this if the textarea is already set to expandable.
Resizer on
Dos and don'ts
Do
Resources
Industry guidance from Luke Wroblewski