Textarea
The multi-line sibling of Input — same chrome, same field wiring, plus auto-resize.
Loading documentation…
Markdown is supported.
Textarea is Input with more than one line. The ring,
the inset fill, the focus treatment, the sizes and the whole field layout are
identical — the only additions are rows and autoResize.
autoResize grows the control with its content instead of scrolling it. Use it
where the text is the point — a commit message, a comment, a prompt — and leave
it off where the field sits in a dense form that should not reflow as you type.
The label row's right end is free — a character counter belongs there, not under the control where it would compete with the description.
Grows with the content instead of scrolling. It defaults to false.
The initial height, in lines.
Padding and type size, matching the control heights. It defaults to base.
Renders the full field layout — label, description, error and wiring.
Muted helper text under the control.
A message, or { message, match } tied to the browser's ValidityState.
Adds the muted "Optional" marker to the label.
A right-aligned slot on the label row — a counter, a hint.
Class for the outer field wrapper.
Class for the control itself.
Forwarded to the <textarea>.
Every other <textarea> attribute is passed straight through.