UNPKG

@material-ui/lab

Version:
38 lines (35 loc) 1.04 kB
import * as React from 'react'; import { InternalStandardProps as StandardProps } from '@material-ui/core'; import { Theme } from '@material-ui/core/styles'; import { SxProps } from '@material-ui/system'; import { TabPanelClasses } 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; } /** * * Demos: * * - [Tabs](https://material-ui.com/components/tabs/) * * API: * * - [TabPanel API](https://material-ui.com/api/tab-panel/) */ export default function TabPanel(props: TabPanelProps): JSX.Element;