GoScrobble/web/node_modules/reactjs-popup/dist/hooks.d.ts

7 lines
598 B
TypeScript
Raw Normal View History

2022-04-25 02:47:15 +00:00
import { RefObject, useLayoutEffect } from 'react';
export declare const useOnEscape: (handler: (event: KeyboardEvent) => void, active?: boolean) => void;
export declare const useRepositionOnResize: (handler: () => void, active?: boolean) => void;
export declare const useOnClickOutside: (ref: RefObject<HTMLElement> | RefObject<HTMLElement>[], handler: (event: TouchEvent | MouseEvent) => void, active?: boolean) => void;
export declare const useTabbing: (contentRef: RefObject<HTMLElement>, active?: boolean) => void;
export declare const useIsomorphicLayoutEffect: typeof useLayoutEffect;