UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

5 lines (4 loc) 269 B
import type { RefObject } from "react"; type ClickOutsideHandler = (event: MouseEvent | TouchEvent) => void; export declare function useClickOutside<T extends HTMLElement>(handler: ClickOutsideHandler, elements?: RefObject<T>[] | null): RefObject<T | null>; export {};