@ntragas/pouncejstest
Version:
A collection of UI components from Panther labs
9 lines (8 loc) • 336 B
TypeScript
import React from 'react';
interface UseOutsideClickProps {
refs: (React.RefObject<HTMLElement> | React.MutableRefObject<HTMLElement>)[];
callback: (event: MouseEvent) => void;
disabled?: boolean;
}
declare const useOutsideClick: ({ refs, callback, disabled }: UseOutsideClickProps) => void;
export default useOutsideClick;