1 | import * as React from 'react';
|
2 | import { OverridableComponent, OverrideProps } from '../OverridableComponent';
|
3 |
|
4 | export interface BottomNavigationTypeMap<P = {}, D extends React.ElementType = 'div'> {
|
5 | props: P & {
|
6 | |
7 |
|
8 |
|
9 | children?: React.ReactNode;
|
10 | |
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | onChange?: (event: React.ChangeEvent<{}>, value: any) => void;
|
17 | |
18 |
|
19 |
|
20 |
|
21 | showLabels?: boolean;
|
22 | |
23 |
|
24 |
|
25 | value?: any;
|
26 | };
|
27 | defaultComponent: D;
|
28 | classKey: BottomNavigationClassKey;
|
29 | }
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | declare const BottomNavigation: OverridableComponent<BottomNavigationTypeMap>;
|
41 |
|
42 | export type BottomNavigationClassKey = 'root';
|
43 |
|
44 | export type BottomNavigationProps<
|
45 | D extends React.ElementType = BottomNavigationTypeMap['defaultComponent'],
|
46 | P = {}
|
47 | > = OverrideProps<BottomNavigationTypeMap<P, D>, D>;
|
48 |
|
49 | export default BottomNavigation;
|