reakit
Version:
Toolkit for building accessible rich web apps with React
3 lines (2 loc) • 321 B
TypeScript
import * as React from "react";
export declare function useEventListenerOutside(containerRef: React.RefObject<HTMLElement>, disclosureRef: React.RefObject<HTMLElement>, nestedDialogs: Array<React.RefObject<HTMLElement>>, eventType: string, listener?: (e: Event) => void, shouldListen?: boolean, capture?: boolean): void;