@headlessui-float/vue
Version:
Easily use Headless UI for Vue 3 with Floating UI (Popper.js)
7 lines (6 loc) • 445 B
TypeScript
import type { ComputedRef, Ref } from 'vue';
type Container = Ref<HTMLElement | null> | HTMLElement | null;
type ContainerCollection = Container[] | Set<Container>;
type ContainerInput = Container | ContainerCollection;
export declare function useOutsideClick(containers: ContainerInput | (() => ContainerInput), cb: (event: MouseEvent | PointerEvent | FocusEvent, target: HTMLElement) => void, enabled?: ComputedRef<boolean>): void;
export {};