UNPKG

@payfit/unity-components

Version:

13 lines (12 loc) • 636 B
import { VariantProps } from '@payfit/unity-themes'; import { PropsWithChildren } from 'react'; import { tabsVariant } from './Tabs.variant.js'; interface TabsContextValue { variant: VariantProps<typeof tabsVariant>['variant']; scrollable: boolean; layout: NonNullable<VariantProps<typeof tabsVariant>['layout']>; } export declare const TabsContext: import('react').Context<TabsContextValue>; export declare function TabsProvider({ children, variant, scrollable, layout, }: PropsWithChildren<TabsContextValue>): import('react/jsx-runtime').JSX.Element; export declare function useTabsContext(): TabsContextValue; export {};