UNPKG

@itwin/itwinui-react

Version:

A react component library for iTwinUI

11 lines (10 loc) 339 B
/** * Hook that adds and removes Event listeners. * @example * useEventListener( * 'pointerup', * handlePointerUp, * containerRef.current?.ownerDocument, * ); */ export declare const useEventListener: (eventName: string, handler: (event: Event) => void, element: HTMLElement | Document | Window | undefined) => void;