1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { OverridableStringUnion } from '@mui/types';
|
4 | import { Theme } from '..';
|
5 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
6 | import { ToolbarClasses } from './toolbarClasses';
|
7 |
|
8 | export interface ToolbarPropsVariantOverrides {}
|
9 |
|
10 | export interface ToolbarOwnProps {
|
11 | |
12 |
|
13 |
|
14 |
|
15 | children?: React.ReactNode;
|
16 | |
17 |
|
18 |
|
19 | classes?: Partial<ToolbarClasses>;
|
20 | |
21 |
|
22 |
|
23 |
|
24 | disableGutters?: boolean;
|
25 | |
26 |
|
27 |
|
28 |
|
29 | variant?: OverridableStringUnion<'regular' | 'dense', ToolbarPropsVariantOverrides>;
|
30 | |
31 |
|
32 |
|
33 | sx?: SxProps<Theme>;
|
34 | }
|
35 |
|
36 | export interface ToolbarTypeMap<
|
37 | AdditionalProps = {},
|
38 | RootComponent extends React.ElementType = 'div',
|
39 | > {
|
40 | props: AdditionalProps & ToolbarOwnProps;
|
41 | defaultComponent: RootComponent;
|
42 | }
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 | declare const Toolbar: OverridableComponent<ToolbarTypeMap>;
|
54 |
|
55 | export type ToolbarProps<
|
56 | RootComponent extends React.ElementType = ToolbarTypeMap['defaultComponent'],
|
57 | AdditionalProps = {},
|
58 | > = OverrideProps<ToolbarTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
59 | component?: React.ElementType;
|
60 | };
|
61 |
|
62 | export default Toolbar;
|