import * as React from 'react'; import { ReactElement, ReactNode, HtmlHTMLAttributes } from 'react'; import { FormProps, MutationMode, RaRecord } from 'ra-core'; import { TabbedFormViewProps } from './TabbedFormView'; /** * Form layout where inputs are divided by tab, one input per line. * * Pass components as children. * * @example * * import * as React from "react"; * import { * Edit, * TabbedForm, * Datagrid, * TextField, * DateField, * TextInput, * ReferenceManyField, * NumberInput, * DateInput, * BooleanInput, * EditButton * } from 'react-admin'; * * export const PostEdit = () => ( * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ); * * @typedef {Object} Props the props you can use (other props are injected by Create or Edit) * @prop {ReactElement[]} FormTab elements * @prop {Object} defaultValues * @prop {Function} validate * @prop {ReactElement} toolbar The element displayed at the bottom of the form, containing the SaveButton * * @param {Props} props */ export declare const TabbedForm: { (props: TabbedFormProps): React.JSX.Element; Tab: { (props: import("./FormTab").FormTabProps): React.JSX.Element; displayName: string; }; }; export interface TabbedFormProps extends Omit, Omit, 'defaultValue' | 'onSubmit' | 'children'>, Partial { children: ReactNode; className?: string; defaultValues?: any; formRootPathname?: string; mutationMode?: MutationMode; record?: RaRecord; resource?: string; syncWithLocation?: boolean; tabs?: ReactElement; toolbar?: ReactElement | false; warnWhenUnsavedChanges?: boolean; } export declare const findTabsWithErrors: (children: any, errors: any) => any[]; //# sourceMappingURL=TabbedForm.d.ts.map