UNPKG

frmx

Version:

Simple, Performant, Lightweight React Forms

23 lines (22 loc) 960 B
import React from 'react'; interface FormPropsInterface { afterChange?(fields: object, path: string | null, hasErrors: boolean, getErrors: any): any; autoCompleteOff?: boolean; children: React.ReactElement; clearAfterSubmit?: any; disabled?: boolean; disableIf?(fields: object): boolean; disableIfNoUpdates?: boolean; disableIfInvalid?: boolean; initialValues: object; refresh?: boolean; onInvalidSubmit?(): any; onReset?(fields: object): any; onSubmit?(fields: object): any; schemaValidation?: object; render?: string; rest?: any; } export default function Form({ afterChange, autoCompleteOff, children, clearAfterSubmit, disabled, disableIf, disableIfNoUpdates, disableIfInvalid, initialValues, refresh, onInvalidSubmit, onReset, onSubmit, schemaValidation, render, // TODO: Check render is a legal value, otherwise replace it with "div" ...rest }: FormPropsInterface): JSX.Element; export {};