react-multistep-forms
Version:
Flexible and customizable multi-step form context for React with native React Hook Form integration.
13 lines • 774 B
TypeScript
import type { ButtonProps } from "../../types/StepControlButtonType";
/**
* A button component that navigates to the next step in a multi-step form.
*
* @param {ButtonProps} props - The props for the NextButton component.
* @param {React.ReactNode} props.children - The content to be displayed inside the button.
* @param {string} [props.className=""] - Additional CSS classes to style the button.
* @param {function} [props.onClick] - Optional click handler to execute custom logic.
*
* @returns {React.ReactElement | null} - A button element or null if the current step is the last step.
*/
export declare const NextButton: ({ children, className, onClick }: ButtonProps) => import("react/jsx-runtime").JSX.Element | null;
//# sourceMappingURL=NextButton.d.ts.map