UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

4 lines (3 loc) 256 B
type EventType = MouseEvent | TouchEvent; export declare function useClickOutside<T extends HTMLElement = any>(callback: (event: EventType) => void, events?: string[] | null, nodes?: (HTMLElement | null)[]): import("react").RefObject<T | null>; export {};