formik-stepper
Version:
Get ready to take your form-building game to the next level with this revolutionary React component. With its seamless integration with the powerful Formik library, you'll be building forms faster and more efficiently than ever before. But that's not all
12 lines (11 loc) • 502 B
TypeScript
import { Validateprops } from "./types";
/**
* Validates the current step of a Formik form.
*
* @param errors - The errors object from Formik.
* @param setTouched - The Formik setTouched function.
* @param setFieldError - The Formik setFieldError function.
* @param currentStep - The current step React element.
* @returns A boolean indicating whether the current step is valid.
*/
export declare const validate: ({ errors, setTouched, setFieldError, currentStep, }: Validateprops) => boolean;