TextArea

Examples

Simple TextArea

Copied to clipboard

Invalid TextArea

Copied to clipboard

TextArea Props

The TextArea component accepts the following props.

NameTypeRequiredDefaultDescription
className
string
''Additional classes added to the TextArea.
isRequired
bool
falseFlag to show if the TextArea is required.
isValid
bool
trueFlag to show if the TextArea is valid or invalid.
value
string | number
nullValue of the TextArea.
onChange
func
() => undefinedA callback for when the TextArea value changes.
aria-label
custom
nullCustom flag to show that the TextArea requires an associated id or aria-label.