UNPKG

beta-parity-react

Version:

Beta Parity React Components

7 lines 383 B
import { RefObject } from 'react'; /** * A custom hook that detects clicks outside of one or more elements. * Optimized for cross-device compatibility and performance. */ export declare function useOutsideClick<T extends HTMLElement = any>(handler: () => void, events?: string[], refs?: RefObject<HTMLElement | null>[]): RefObject<T>; //# sourceMappingURL=useOutsideClick.d.ts.map