Text Area

Displays a multi-line text field input.

PropTypeDefault
invalidbooleanfalse
size"1" | "2" | "3""2"
variant"classic" | "surface" | "soft""classic"

This component is based on the textarea element and supports common margin props m, mx, my, ml, mr, mt, mb. View source

Use the variant prop to control the visual style of the Text Area.

The state prop is deprecated, as the types of state it represents may not be mutually exclusive. Use disabled, readOnly or invalid instead.

The invalid prop indicates that the field’s value is invalid. Fields are styled as valid by default, though built-in client-side validation still applies. In a future version we may synchronize styled validation with the field’s internal validity state.