1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
5 | import { BottomNavigationClasses } from './bottomNavigationClasses';
|
6 |
|
7 | export interface BottomNavigationOwnProps {
|
8 | |
9 |
|
10 |
|
11 | children?: React.ReactNode;
|
12 | |
13 |
|
14 |
|
15 | classes?: Partial<BottomNavigationClasses>;
|
16 | |
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | onChange?: (event: React.SyntheticEvent, value: any) => void;
|
23 | |
24 |
|
25 |
|
26 |
|
27 |
|
28 | showLabels?: boolean;
|
29 | |
30 |
|
31 |
|
32 | sx?: SxProps<Theme>;
|
33 | |
34 |
|
35 |
|
36 | value?: any;
|
37 | }
|
38 |
|
39 | export interface BottomNavigationTypeMap<
|
40 | AdditionalProps = {},
|
41 | RootComponent extends React.ElementType = 'div',
|
42 | > {
|
43 | props: AdditionalProps & BottomNavigationOwnProps;
|
44 | defaultComponent: RootComponent;
|
45 | }
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | declare const BottomNavigation: OverridableComponent<BottomNavigationTypeMap>;
|
57 |
|
58 | export type BottomNavigationProps<
|
59 | RootComponent extends React.ElementType = BottomNavigationTypeMap['defaultComponent'],
|
60 | AdditionalProps = {},
|
61 | > = OverrideProps<BottomNavigationTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
62 | component?: React.ElementType;
|
63 | };
|
64 |
|
65 | export default BottomNavigation;
|