• Retrieves the error properties for a given form field in a Formik-like object.

    Parameters

    • formik: FormikLike

      The Formik-like object containing the form state.

    • name: string

      The name of the form field.

    Returns ReturnType

    An object containing the error and helperText properties.

    Example

    <TextField {...formik.getFieldProps("test")} {...getErrorProps(formik, "test")} />
    

Generated using TypeDoc