Skip to content

Forms

Textarea

Multi-line text entry, resizable vertically only.

Examples

default

Notes

Multi-line text entry.

Resizes vertically only: horizontal resize lets a reader drag the control past the measure and past the page's own gutter.

Props

Textarea props
PropTypeDefaultDescription
invalidbooleanPaints the resting border with `--danger` and reflects `aria-invalid`.
refRef<HTMLTextAreaElement>

Also accepts everything in TextareaHTMLAttributes<HTMLTextAreaElement>. Those are forwarded to the underlying element and are not listed row by row.