UNPKG

@headlessui-float/vue

Version:

Easily use Headless UI for Vue 3 with Floating UI (Popper.js)

6 lines (5 loc) 401 B
import type { VirtualElement } from '@floating-ui/dom'; import type { ComponentPublicInstance, Ref } from 'vue'; type AsElement<T extends HTMLElement | VirtualElement | ComponentPublicInstance> = (T extends HTMLElement ? T : HTMLElement) | null; export declare function dom<T extends HTMLElement | VirtualElement | ComponentPublicInstance>(ref?: Ref<T | null> | null): AsElement<T> | null; export {};