The TextInput component wrapper.
This is a compound component.
This component extends the native <div>arrow-up-right API. That's why the className prop is not included in the table.
className
children
ReactNode
β
hasError
boolean
β
isDisabled
isReadOnly
The children in this case, because it is a compound component, should be the ones provided by this design system.
The hasError prop sets the component state to an error state, changing its colors by the ones defined in the tokens.
Disabled the component by changing its state.
This causes the component to read only. This overrides the hasError state.
Last updated 1 year ago