-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Expand file tree
/
Copy pathTabPanel.d.ts
More file actions
44 lines (41 loc) · 1.25 KB
/
TabPanel.d.ts
File metadata and controls
44 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import * as React from 'react';
import { InternalStandardProps as StandardProps } from '@mui/material/internal';
import { CreateThemeComponent, Theme } from '@mui/material/stylesOptimized';
import { SxProps } from '@mui/system';
import { TabPanelClasses, TabPanelClassKey } from './tabPanelClasses';
export interface TabPanelProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>> {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<TabPanelClasses>;
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx?: SxProps<Theme>;
/**
* The `value` of the corresponding `Tab`. Must use the index of the `Tab` when
* no `value` was passed to `Tab`.
*/
value: string | number;
/**
* Always keep the children in the DOM.
* @default false
*/
keepMounted?: boolean;
}
export type TabPanelTheme = CreateThemeComponent<TabPanelClassKey, TabPanelProps>;
/**
*
* Demos:
*
* - [Tabs](https://mui.com/material-ui/react-tabs/)
*
* API:
*
* - [TabPanel API](https://mui.com/material-ui/api/tab-panel/)
*/
export default function TabPanel(props: TabPanelProps): React.JSX.Element;