import * as React from 'react'; import { Simplify } from '@mui/types'; import { UseTabPanelRootSlotProps } from '../useTabPanel'; import { PolymorphicProps, SlotComponentProps } from '../utils'; export interface TabPanelRootSlotPropsOverrides { } export interface TabPanelOwnProps { /** * The content of the component. */ children?: React.ReactNode; className?: string; /** * The value of the TabPanel. It will be shown when the Tab with the corresponding value is selected. * If not provided, it will fall back to the index of the panel. * It is recommended to explicitly provide it, as it's required for the tab panel to be rendered on the server. */ value?: number | string; /** * The components used for each slot inside the TabPanel. * Either a string to use a HTML element or a component. * @default {} */ slots?: TabPanelSlots; /** * The props used for each slot inside the TabPanel. * @default {} */ slotProps?: { root?: SlotComponentProps<'div', TabPanelRootSlotPropsOverrides, TabPanelOwnerState>; }; } export interface TabPanelSlots { /** * The component that renders the root. * @default 'div' */ root?: React.ElementType; } export interface TabPanelTypeMap { props: TabPanelOwnProps & AdditionalProps; defaultComponent: RootComponentType; } export type TabPanelProps = PolymorphicProps, RootComponentType>; export type TabPanelOwnerState = Simplify; export type TabPanelRootSlotProps = UseTabPanelRootSlotProps & { children?: React.ReactNode; className?: string; ownerState: TabPanelOwnerState; ref: React.Ref; role: React.AriaRole; };