@vuesax-alpha/nightly
Version:
A Component Library for Vue 3
10 lines (9 loc) • 417 B
TypeScript
import type { InjectionKey, Ref } from 'vue';
import type { MaybeRef } from 'vuesax-alpha/es/utils';
export declare type IdInjectionContext = {
prefix: number;
current: number;
};
export declare const ID_INJECTION_KEY: InjectionKey<IdInjectionContext>;
export declare const useIdInjection: () => IdInjectionContext;
export declare const useId: (deterministicId?: MaybeRef<string> | undefined) => Ref<string>;