This component extends the native <div> API. That's why the className prop is not included in the table.
Props
Type
Required
children
ReactNode
β
maxLengthCounter
number
β
hasError
boolean
β
isDisabled
boolean
β
isReadOnly
boolean
β
children
The children in this case, because it is a compound component, should be the ones provided by this design system.
maxLengthCounter
A visual representation of the max length passed to the textarea. Not to be used on the Control subcomponent. This does NOT controls the maxLength of the Textarea.
hasError
The hasError prop sets the component state to an error state, changing its colors by the ones defined in the tokens.
isDisabled
Disabled the component by changing its state.
isReadOnly
This causes the component to read only. This overrides the hasError state.