useMouse

React sensor hooks that re-render on mouse position changes.

hooks
Description of the SVG image Loading...

Variants

useMouseHovered

Description of the SVG image Loading...

About

useMouse simply tracks mouse position; useMouseHovered allows you to specify extra options:

  • bound — to bind mouse coordinates within the element
  • whenHovered — whether to attach mousemove event handler only when user hovers over the element

Installation

Run the following command:

npx ever-ui-clx@0.2.1 add demo-use-mouse
# └──> Hook coming soon.

Usage