UNPKG

hongluan-ui

Version:
10 lines (9 loc) 396 B
import type { InjectionKey, Ref } from 'vue'; import type { MaybeRef } from '@vueuse/core'; 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>) => Ref<string>;