UNPKG

hongluan-ui

Version:
11 lines (10 loc) 427 B
import type { ComputedRef, InjectionKey, Ref } from 'vue'; export declare type DropdownInjectionContext = { contentRef: Ref<HTMLElement | null>; role: ComputedRef<string>; triggerId: ComputedRef<string>; isUsingKeyboard: Ref<boolean>; onItemLeave: (e: PointerEvent) => void; onItemEnter: (e: PointerEvent) => void; }; export declare const DROPDOWN_INJECTION_KEY: InjectionKey<DropdownInjectionContext>;