UNPKG

element-plus

Version:

A Component Library for Vue 3

9 lines (8 loc) 349 B
import type { InjectionKey, Ref } from 'vue'; import type { MaybeRef } from '@vueuse/core'; export declare type ElIdInjectionContext = { prefix: number; current: number; }; export declare const ID_INJECTION_KEY: InjectionKey<ElIdInjectionContext>; export declare const useId: (deterministicId?: MaybeRef<string> | undefined) => Ref<string>;