UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

2 lines (1 loc) 260 B
export declare function useEventListener<K extends keyof HTMLElementEventMap, T extends HTMLElement = any>(type: K, listener: (this: HTMLDivElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): React.RefCallback<T | null>;