useMousePosition
Track the user's mouse cursor position on the window or a target element.
Start moving your mouse cursor.
Type Definitions
const useMousePosition: <T extends HTMLElement = HTMLDivElement>(ref?: React.RefObject<T>) => {
x: number;
y: number;
ref: React.RefObject<T>;
isInside: boolean | undefined;
};