<TextInput> ComponentA text input to be used within Formik forms.
<TextInputfield={{ name: 'example', value: 'test', readOnly: true }}form={{ errors: {}, touched: {} }}/>
| Name | Description |
|---|---|
field*object | Props for the input element, supplied by Formik |
form*object | Form data including error and touched info, supplied by Formik |
labelstring | Label text, HTML allowed. |
typestring | type for the input field. |
placeholderstring | Placeholder text for the field |
classNamestring | Optional className to add to the root element |
themeobject | Controls the appearance of the text input. theme.background should be one of ["light", "dark", "brand"]. |