@grafana/ui
Version:
Grafana Components Library
8 lines (7 loc) • 344 B
TypeScript
import React from 'react';
/**
* Cannot use the react-use useClickAway directly as it relies on mousedown event which is not ideal as the element selection uses pointerdown
* @param ref
* @param onClickAway
*/
export declare function useCustomClickAway(onClickAway: (evt: MouseEvent | TouchEvent) => void): React.RefObject<HTMLDivElement>;