FrontPastel/node_modules/@mui/base/useTabs/TabsProvider.d.ts

19 lines
668 B
TypeScript
Raw Normal View History

2024-04-17 13:55:11 +00:00
import * as React from 'react';
import { TabsContextValue } from '../Tabs/TabsContext';
import { CompoundComponentContextValue } from '../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 declare function TabsProvider(props: TabsProviderProps): React.JSX.Element;