UNPKG

@uva-glass/component-library

Version:

React components UvA

5 lines (4 loc) 243 B
import { RefObject } from 'react'; type Handler = (event: MouseEvent | TouchEvent | KeyboardEvent) => void; export declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: Handler) => void; export {};