TextInput
Examples
TextInput Props
The TextInput component accepts the following props.
Name | Type | Required | Default | Description |
---|---|---|---|---|
className | string | '' | Additional classes added to the TextInput. | |
isRequired | bool | false | Flag to show if the input is required. | |
type | enum: 'text', 'date', 'datetime-local', 'email', 'month', 'number', 'password', 'search', 'tel', 'time', 'url' | 'text' | Type that the input accepts. | |
value | string | number | null | Value of the input. | |
isValid | bool | true | Flag to show if the input is valid or invalid. | |
isDisabled | bool | false | Flag to show if the input is disabled. | |
onChange | func | () => undefined | A callback for when the input value changes. | |
isReadOnly | bool | false | Flag to show if the input is read only. | |
aria-label | custom | null | Custom flag to show that the input requires an associated id or aria-label. |