UNPKG

@manojadams/metaforms

Version:
27 lines (26 loc) 802 B
import React from "react"; import MetaForm from "../../constants/MetaForm"; import { IField, IMeta } from "../../constants/model-interfaces"; import FormContext from "../form-context"; export default abstract class BaseFormWizard extends React.Component<{ theme: string; fields: Array<IField>; }> { static contextType: React.Context<MetaForm>; context: React.ContextType<typeof FormContext>; state: any; theme: string; fields: Array<{ name: string; fields: Array<IField> | undefined; meta: IMeta; }>; constructor(props: { fields: Array<IField>; theme: string; }); render(): JSX.Element; scrollToTop(): void; setActiveIndex(index: number): void; abstract screens(): JSX.Element; }