UNPKG

@particle-network/connectkit

Version:
8 lines (7 loc) 329 B
/** * Hook to listen for clicks outside of the target elements * @param {Function} callback - The function to call when a click outside is detected * @param {Array<React.RefObject>} refs - An array of refs of the target elements */ declare const useClickAway: (callback: any, refs: any) => void; export default useClickAway;