Retrieves the error properties for a given form field in a Formik-like object.
The Formik-like object containing the form state.
The name of the form field.
An object containing the error and helperText properties.
<TextField {...formik.getFieldProps("test")} {...getErrorProps(formik, "test")} /> Copy
<TextField {...formik.getFieldProps("test")} {...getErrorProps(formik, "test")} />
Generated using TypeDoc
Retrieves the error properties for a given form field in a Formik-like object.