react-tooltip-z
Version:
Lightweight, customizable React tooltip component with hover, click, focus and manual trigger support.
13 lines (12 loc) • 364 B
TypeScript
/// <reference types="react" />
interface PositionState {
clientTop: number | null;
clientLeft: number | null;
posPlacement: any;
arrowPosition: number | null;
}
export declare function useTooltipPosition(props: any): {
refTooltip: import("react").MutableRefObject<HTMLDivElement | null>;
position: PositionState;
};
export {};