Files
turftracker/frontend/node_modules/@headlessui/react/dist/hooks/use-outside-click.d.ts
2026-04-09 13:19:47 -05:00

7 lines
455 B
TypeScript

import { MutableRefObject } from 'react';
type Container = MutableRefObject<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 | TouchEvent, target: HTMLElement) => void, enabled?: boolean): void;
export {};