react-modal-e2z
Version:
React hook modal portal. (Lib)
14 lines (13 loc) • 443 B
TypeScript
import React from "react";
declare type CallBack = () => any;
declare type TapParams = {
onSingleTap?: CallBack;
onDoubleTap?: CallBack;
};
export declare function onTap(e: React.MouseEvent, { onSingleTap, onDoubleTap }: TapParams): void;
export declare function isScrollable(node: Element): {
vertical: boolean;
horizontal: boolean;
};
export declare function getModalElement(id: string): HTMLElement;
export {};