Textarea

A multi-line text field with resize control and validation.

Label and value

A label sits above, tied to the field by its id. bind:value keeps a state in step with the field.

Resize

resize sets which way the corner drags: vertical by default, or none, horizontal or both.

Validation

required and maxlength are the browser's: submit it empty, or past 280 characters, and the browser stops it. invalid marks the field for any other error; the message under it is linked by aria-describedby.

Disabled and readonly

A disabled field is out of the form; a readonly one is submitted and can be selected, not changed.

Examples

A labelled field
A bound field
Length: 0
Resize vertical and none
Resize horizontal and both
Browser validation
0/280

Submit it empty, or past the character limit.

An invalid field
This note exceeds policy length.
Disabled and readonly