UNPKG

@data-driven-forms/react-form-renderer

Version:

React Form Renderer. Data Driven Forms converts JSON form definitions into fully functional React forms.

24 lines (20 loc) 630 B
import React from 'react'; import { Field } from '../common-types'; import { FormOptions } from '../renderer-context'; export interface WizardContextValue { formOptions: FormOptions; crossroads: string[]; currentStep: { fields: Field[]; name: string; title: string; nextStep?: string }; handlePrev: Function; onKeyDown: Function; jumpToStep: Function; setPrevSteps: Function; handleNext: Function; navSchema: Object; activeStepIndex: number; maxStepIndex: number; isDynamic: boolean; prevSteps: string[]; } declare const WizardContext: React.Context<WizardContextValue>; export default WizardContext;