UNPKG

668 BTypeScriptView Raw
1import * as React from 'react';
2import { TabsContextValue } from '../Tabs/TabsContext';
3import { CompoundComponentContextValue } from '../useCompound';
4export type TabPanelMetadata = {
5 id: string | undefined;
6 ref: React.RefObject<HTMLElement>;
7};
8export type TabsProviderValue = CompoundComponentContextValue<string | number, TabPanelMetadata> & TabsContextValue;
9export interface TabsProviderProps {
10 value: TabsProviderValue;
11 children: React.ReactNode;
12}
13/**
14 * Sets up the contexts for the underlying Tab and TabPanel components.
15 *
16 * @ignore - do not document.
17 */
18export declare function TabsProvider(props: TabsProviderProps): React.JSX.Element;