UNPKG

formik-pf

Version:

A UI library that provides formik bindings with PF components.

29 lines (28 loc) 1.06 kB
/// <reference types="react" /> import { FormikWizardStep } from './FormikWizard'; export type InternalWizardContextType = { currentStepIndex: number; currentStep: FormikWizardStep; isPrevDisabled: boolean; isFirstStep: boolean; isLastStep: boolean; goBack: () => void; goNext: () => void; goToStep: (stepIndex: number) => void; goToStepById: (stepId: string) => void; goToStepByName: (stepName: string) => void; }; export declare const InternalWizardContext: import("react").Context<InternalWizardContextType>; export declare const useInternalWizardContext: () => InternalWizardContextType; export declare const useInternalWizard: (steps: FormikWizardStep[], startAtStep: number) => { currentStepIndex: number; currentStep: FormikWizardStep; isPrevDisabled: boolean; isFirstStep: boolean; isLastStep: boolean; goBack: () => void; goNext: () => void; goToStep: (stepIndex: number) => void; goToStepById: (stepId: string) => void; goToStepByName: (stepName: string) => void; };