useMousePositionRef

A custom React hook that tracks mouse/touch position using a ref to avoid re-renders. Returns a mutable ref object containing the current position relative to a container or window.

Pattern
pattern-883
Interface family
display
Component kind
component

Open this Pattern in the Solice UI workspace

Find a related component