UNPKG

@leveluptuts/fresh

Version:
21 lines (20 loc) 599 B
import React from 'react'; import { useForm } from './state/formState'; export { default as Field } from './Field'; import './fields/global.css'; interface defaultValuesInterface { defaultValues?: object; } declare type FormProps = { cancelAction(): void; cancelButton?: boolean; cancelText?: string; formId: string; className?: string; defaultValues?: defaultValuesInterface; onSubmit(formState: object): void; onChange?(formState: object): void; submitText?: string; }; declare const Form: React.FC<FormProps>; export { Form, useForm };