<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 |
label string | Label text, HTML allowed. |
type string | type for the input field. |
placeholder string | Placeholder text for the field |
className string | Optional className to add to the root element |
theme object | Controls the appearance of the text input. theme.background should be one of ["light", "dark", "brand"]. |