/** * SizeContext for Tabs. * * Allows Tabs to propagate its `size` prop to child Tab components without * requiring each Tab to receive an explicit `size` prop. * * Usage (in Tabs.tsx): * ```tsx * import { SizeProvider } from './SizeContext'; * {children} * ``` * * Usage (in individual Tab child): * ```tsx * import { useGroupSize } from '../Tabs/SizeContext'; * const groupSize = useGroupSize(); * const resolvedSize = groupSize ?? size ?? 'medium'; * ``` */ import React from 'react'; import type { SizeProp } from '../../tokens/size'; /** Context carrying the size propagated from a Tabs parent. */ export declare const SizeContext: React.Context; /** Provider component wrapping Tabs children. */ export declare const SizeProvider: React.Provider; /** * Reads the size value propagated by an ancestor Tabs component. * Returns `undefined` when the component is not inside a Tabs — callers * should fall back to their own `size` prop or `'medium'`. */ export declare function useGroupSize(): SizeProp | undefined; //# sourceMappingURL=SizeContext.d.ts.map