Z
Zyeon UI

useMousePosition · Zyeon UI

A hook that tracks pointer position, optionally relative to an element, with clamped 0..1 normalized coordinates.

npx shadcn@latest add @zyeon/use-mouse-position
Preview useMousePosition on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useMousePosition hasn't had its turn. Its source will show here once it has.