import { FormikConfig } from "formik"; import * as React from "react"; import { ViewProps } from "../View"; interface InnerFormProps extends ViewProps { status: string; setStatus: (status?: any) => void; onReset: (a: any) => void; disabled?: boolean; onSubmit: (evt: React.SyntheticEvent) => void; onChange?: (data: any) => void; values?: any; } export interface FormProps extends FormikConfig { children?: React.ReactNode; disabled?: boolean; formikRef?: any; onChange?: (data: any) => void; flexGrow?: number; formProps?: React.FormHTMLAttributes; } export declare class InternalForm extends React.Component, any> { componentDidUpdate(prevProps: InnerFormProps): void; componentDidMount(): void; UNSAFE_componentWillReceiveProps(nextProps: any): void; handleSubmit(evt: any): false | void; handleReset(evt: any): false | void; render(): JSX.Element; } /** * Form is an extension of Formik's Formik Component https://jaredpalmer.com/formik/docs/api/formik * * Form keeps track of your form's state and then exposes it plus a few reusable methods and event handlers (handleChange, handleBlur, and handleSubmit) to your form via props. handleChange and handleBlur work exactly as expected--they use a name or id attribute to figure out which field to update. If you are using the Form and Field components from Go1d, these methods are even mapped automatically. * * The form component renders a
dom node with no styling * * Helpful Resources * * - [Validation](https://jaredpalmer.com/formik/docs/guides/validation) * - [Nested Objects & Arrays](https://jaredpalmer.com/formik/docs/guides/arrays) * - [Form Submission](https://jaredpalmer.com/formik/docs/guides/form-submission) */ declare const Form: React.SFC; export default Form;