@material-ui/lab
Version:
Material-UI Lab - Incubator for Material-UI React components.
32 lines (29 loc) • 727 B
TypeScript
import * as React from 'react';
export interface TabContextValue {
idPrefix: string;
value: string;
}
export interface TabContextProps {
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* The value of the currently selected `Tab`.
*/
value: string;
}
/**
*
* Demos:
*
* - [Tabs](https://mui.com/components/tabs/)
*
* API:
*
* - [TabContext API](https://mui.com/api/tab-context/)
*/
export default function TabContext(props: TabContextProps): JSX.Element;
export function useTabContext(): TabContextValue | null;
export function getPanelId(context: TabContextValue, tabValue: string): string;
export function getTabId(context: TabContextValue, tabValue: string): string;