Files
infocom-systems-design/node_modules/@headlessui/react/dist/hooks/use-outside-click.d.ts
2025-10-03 22:27:28 +03:00

6 lines
384 B
TypeScript

type Container = Element | null;
type ContainerCollection = Container[] | Set<Container>;
type ContainerInput = Container | ContainerCollection;
export declare function useOutsideClick(enabled: boolean, containers: ContainerInput | (() => ContainerInput), cb: (event: MouseEvent | PointerEvent | FocusEvent | TouchEvent, target: HTMLOrSVGElement & Element) => void): void;
export {};