import * as React from 'react'; import { type ComponentsOverrides } from '@mui/material/styles'; import { type ReactNode } from 'react'; import { type ToolbarProps as MuiToolbarProps } from '@mui/material'; /** * The Toolbar displayed at the bottom of forms. * * @example Always enable the * * import * as React from 'react'; * import { * Create, * DateInput, * TextInput, * SimpleForm, * Toolbar, * SaveButton, * required, * } from 'react-admin'; * * const now = new Date(); * const defaultSort = { field: 'title', order: 'ASC' }; * * const MyToolbar = props => ( * * * * ); * * const CommentCreate = () => ( * * }> * * * * * * ); * * @typedef {Object} Props the props you can use (other props are injected by the ) * @prop {ReactElement[]} children Customize the buttons you want to display in the . * */ export declare const Toolbar: (inProps: ToolbarProps) => React.JSX.Element; export interface ToolbarProps extends Omit { children?: ReactNode; className?: string; resource?: string; } export declare const ToolbarClasses: { desktopToolbar: string; mobileToolbar: string; defaultToolbar: string; }; declare module '@mui/material/styles' { interface ComponentNameToClassKey { RaToolbar: 'root' | 'desktopToolbar' | 'mobileToolbar' | 'defaultToolbar'; } interface ComponentsPropsList { RaToolbar: Partial; } interface Components { RaToolbar?: { defaultProps?: ComponentsPropsList['RaToolbar']; styleOverrides?: ComponentsOverrides>['RaToolbar']; }; } } //# sourceMappingURL=Toolbar.d.ts.map