UNPKG

670 BTypeScriptView Raw
1import * as React from 'react';
2import { StandardProps } from '@material-ui/core';
3
4export type TabPanelClassKey = 'root';
5
6export interface TabPanelProps
7 extends StandardProps<React.HTMLAttributes<HTMLDivElement>, TabPanelClassKey> {
8 /**
9 * The content of the component.
10 */
11 children?: React.ReactNode;
12 /**
13 * The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
14 * no `value` was passed to `Tab`.
15 */
16 value: string;
17}
18
19/**
20 *
21 * Demos:
22 *
23 * - [Tabs](https://mui.com/components/tabs/)
24 *
25 * API:
26 *
27 * - [TabPanel API](https://mui.com/api/tab-panel/)
28 */
29export default function TabPanel(props: TabPanelProps): JSX.Element;