1 | import * as React from 'react';
|
2 | import { SxProps } from '@mui/system';
|
3 | import { Theme } from '..';
|
4 | import { ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from '../ButtonBase';
|
5 | import { OverrideProps } from '../OverridableComponent';
|
6 | import { BottomNavigationActionClasses } from './bottomNavigationActionClasses';
|
7 |
|
8 | export interface BottomNavigationActionOwnProps {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | children?: React.ReactNode;
|
14 | |
15 |
|
16 |
|
17 | classes?: Partial<BottomNavigationActionClasses>;
|
18 | |
19 |
|
20 |
|
21 | icon?: React.ReactNode;
|
22 | |
23 |
|
24 |
|
25 | label?: React.ReactNode;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | showLabel?: boolean;
|
34 | |
35 |
|
36 |
|
37 | sx?: SxProps<Theme>;
|
38 | |
39 |
|
40 |
|
41 | value?: any;
|
42 | }
|
43 |
|
44 | export type BottomNavigationActionTypeMap<
|
45 | AdditionalProps,
|
46 | RootComponent extends React.ElementType,
|
47 | > = ExtendButtonBaseTypeMap<{
|
48 | props: AdditionalProps & BottomNavigationActionOwnProps;
|
49 | defaultComponent: RootComponent;
|
50 | }>;
|
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 | declare const BottomNavigationAction: ExtendButtonBase<
|
64 | BottomNavigationActionTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>
|
65 | >;
|
66 |
|
67 | export type BottomNavigationActionProps<
|
68 | RootComponent extends React.ElementType = ButtonBaseTypeMap['defaultComponent'],
|
69 | AdditionalProps = {},
|
70 | > = OverrideProps<BottomNavigationActionTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
71 | component?: React.ElementType;
|
72 | };
|
73 |
|
74 | export default BottomNavigationAction;
|