@vuecs/navigation
Version:
A package for multi level navigations.
19 lines • 964 B
TypeScript
import type { ThemeClassesOverride, VariantValues } from '@vuecs/core';
import type { StepperThemeClasses } from './types';
/**
* Context shared from `<VCStepper>` to its descendant parts so that
* theme-class and theme-variant values applied to the root propagate
* automatically to indicator / title / description / separator / item /
* trigger without the consumer having to repeat the props on every
* child. Per-instance values on a child still win over inherited ones.
*
* Optional — children render bare (without inherited theme values) when
* mounted outside `<VCStepper>` for unit tests / Storybook.
*/
export type StepperContext = {
themeClass: () => ThemeClassesOverride<StepperThemeClasses> | undefined;
themeVariant: () => VariantValues | undefined;
};
export declare function provideStepperContext(ctx: StepperContext): void;
export declare function useStepperContext(): StepperContext | null;
//# sourceMappingURL=context.d.ts.map