@utahdts/utah-design-system
Version:
Utah Design System React Library
15 lines (12 loc) • 453 B
JSX
import { createContext } from 'react';
/** @typedef {import('@utahdts/utah-design-system').TabGroupContextValue} TabGroupContextValue */
export const TabGroupContext = /** @type {typeof createContext<TabGroupContextValue>} */ (createContext)({
isVertical: false,
navigateNext: () => { },
navigatePrevious: () => { },
registerTab: () => { },
selectedTabId: '',
setSelectedTabId: () => { },
tabGroupId: '',
unRegisterTab: () => { },
});