@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
16 lines (15 loc) • 657 B
TypeScript
import { FloatingPosition } from '../../Floating';
interface UseFloatingTooltip {
offset: number;
position: FloatingPosition;
}
export declare function useFloatingTooltip<T extends HTMLElement = any>({ offset, position, }: UseFloatingTooltip): {
handleMouseMove: ({ clientX, clientY }: MouseEvent | React.MouseEvent<T, MouseEvent>) => void;
x: number;
y: number;
opened: boolean;
setOpened: import("react").Dispatch<import("react").SetStateAction<boolean>>;
boundaryRef: import("react").MutableRefObject<T | undefined>;
floating: ((node: HTMLElement | null) => void) & ((node: HTMLElement | null) => void);
};
export {};