Textarea
The textarea captures multi-line text like messages, comments, and feedback, and grows with its content as the user types. Pair it with a field for a label and description; for a single line, reach for the input.
Usage
Add the textarea class to a <textarea> element. It sizes itself to its content from a two-row minimum.
<textarea class="textarea" placeholder="Type your message here."></textarea>Examples
Field
Wrap the textarea in a field with a label and description.
Disabled
Add disabled and the textarea mutes itself and blocks interaction.
Invalid
Set aria-invalid on the textarea for the error state.
Button
Pair the textarea with a button to submit; without a visible label, give the textarea an aria-label.