z-react-dynamic-form
Version:
A dynamic form builder for React applications with various input types and validation
16 lines (15 loc) • 499 B
TypeScript
import React, { ReactNode } from "react";
import { UseFormReturn } from "react-hook-form";
import { z } from "zod";
import { PropsPropsType, StepsType } from "../../types";
type StepsHandlerProps = {
steps?: StepsType<any>[];
props?: PropsPropsType;
form: UseFormReturn<z.TypeOf<any>, any, undefined>;
stepPreview?: (value: any) => ReactNode;
};
/**
* StepsHandler - Manages multi-step forms
*/
declare const StepsHandler: React.FC<StepsHandlerProps>;
export default StepsHandler;