1 | import * as React from 'react';
|
2 | import { StandardProps } from '..';
|
3 |
|
4 | export interface BottomNavigationProps
|
5 | extends StandardProps<
|
6 | React.HTMLAttributes<HTMLDivElement>,
|
7 | BottomNavigationClassKey,
|
8 | 'onChange'
|
9 | > {
|
10 | /**
|
11 | * The component used for the root node.
|
12 | * Either a string to use a DOM element or a component.
|
13 | */
|
14 | component?: React.ElementType<React.HTMLAttributes<HTMLDivElement>>;
|
15 | /**
|
16 | * Callback fired when the value changes.
|
17 | *
|
18 | * @param {object} event The event source of the callback
|
19 | * @param {any} value We default to the index of the child
|
20 | */
|
21 | onChange?(event: React.ChangeEvent<{}>, value: any): void;
|
22 | /**
|
23 | * If `true`, all `BottomNavigationAction`s will show their labels.
|
24 | * By default, only the selected `BottomNavigationAction` will show its label.
|
25 | */
|
26 | showLabels?: boolean;
|
27 | /**
|
28 | * The value of the currently selected `BottomNavigationAction`.
|
29 | */
|
30 | value?: any;
|
31 | }
|
32 |
|
33 | export type BottomNavigationClassKey = 'root';
|
34 |
|
35 | export default function BottomNavigation(props: BottomNavigationProps): JSX.Element;
|