@mui/base
Version:
A library of headless ('unstyled') React UI components and low-level hooks.
19 lines (18 loc) • 674 B
TypeScript
import * as React from 'react';
import { TabsContextValue } from '../Tabs/TabsContext';
import { CompoundComponentContextValue } from '../utils/useCompound';
export type TabPanelMetadata = {
id: string | undefined;
ref: React.RefObject<HTMLElement>;
};
export type TabsProviderValue = CompoundComponentContextValue<string | number, TabPanelMetadata> & TabsContextValue;
export interface TabsProviderProps {
value: TabsProviderValue;
children: React.ReactNode;
}
/**
* Sets up the contexts for the underlying Tab and TabPanel components.
*
* @ignore - do not document.
*/
export default function TabsProvider(props: TabsProviderProps): React.JSX.Element;