UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

26 lines (25 loc) 1.08 kB
import { GetStylesApi } from '../../core'; import type { TabsFactory } from './Tabs'; export interface TabsContextValue { id: string; value: string | null; orientation: 'horizontal' | 'vertical' | undefined; loop: boolean | undefined; activateTabWithKeyboard: boolean | undefined; allowTabDeactivation: boolean | undefined; onChange: (value: string | null) => void; getTabId: (value: string) => string; getPanelId: (value: string) => string; variant: string | undefined; color: string | undefined; radius: string | number | undefined; inverted: boolean | undefined; keepMounted: boolean | undefined; keepMountedMode: 'activity' | 'display-none' | undefined; placement: 'right' | 'left' | undefined; unstyled: boolean | undefined; getStyles: GetStylesApi<TabsFactory>; mountedPanels: React.RefObject<Set<string>>; setMountedPanel: (value: string, mounted: boolean) => void; } export declare const TabsProvider: import("react").Context<TabsContextValue | null>, useTabsContext: () => TabsContextValue;