Components
Textarea
Renders a textarea element for multi-line text input (Base UI
Field.Control rendering a <textarea>). Inside a Field it is the field's
control: the FieldLabel targets it, FieldDescription/FieldError describe it,
and it inherits the field's invalid state.
Usage
Best practices
Inside a
Field, let invalid state cascade likeInput- omithasError; pass it only to force error styling on a standaloneTextarea.It auto-grows with content (
field-sizing-content); setrowsfor a minimum height in lines rather than pinning height via CSS.Give it a label - inside a
FieldaFieldLabeltargets it with no ids to wire; standalone, point aLabel'shtmlForat itsid. A placeholder is not an accessible name.
Props
Composition
Builds on
Used by