@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
16 lines (15 loc) • 648 B
TypeScript
import type { ComputedRef, InjectionKey } from 'vue';
export declare type NavbarRegisterContext = (id: string) => {
unregister: () => void;
onClick: () => void;
isActive: ComputedRef<boolean>;
};
export declare const navbarRegisterContextKey: InjectionKey<NavbarRegisterContext>;
export declare type NavbarContextKey = {
modelValue: ComputedRef<string | undefined>;
};
export declare const navbarContextKey: InjectionKey<NavbarContextKey>;
export declare type NavbarGroupRegisterContext = (id: string) => {
unregister: () => void;
};
export declare const navbarGroupRegisterContextKey: InjectionKey<NavbarGroupRegisterContext>;