UNPKG

@mmcodemark/fuselage-hooks

Version:

React hooks for Fuselage, Rocket.Chat's design system and UI toolkit

9 lines 393 B
import type { RefObject } from 'react'; /** * Hook to verify if the user clicked outside the element. * @param elements - array of ref elements * @param cb - the callback to call when the user clicked outside * @public */ export declare function useOutsideClick<T extends Element>(elements: RefObject<T>[], cb: (e: MouseEvent) => void): void; //# sourceMappingURL=useOutsideClick.d.ts.map