UNPKG

use-wizard

Version:

A dead-easy-to-use light-weight react hook to handle multi-paths wizards (and simple wizards too) and navigate into them.

15 lines (14 loc) 365 B
import {TStep} from "./TStep"; export interface IWizard { nextStep: () => void; previousStep: () => void; nPreviousSteps: number; nForwardSteps: number; forwardStep: () => void; initialize: () => void; jumpSteps: (jump: number) => void; goToStep: (step: TStep) => void; history: TStep[]; stepIndex: () => number; wizardLength: () => number; }