useHover

React UI sensor hooks that track if some element is being hovered by a mouse.

hooks
Description of the SVG image Loading...

Variants

useHoverDirty

Description of the SVG image Loading...

About

  • useHover accepts a React element or a function that returns one, useHoverDirty accepts React ref.
  • useHover sets react onMouseEnter and onMouseLeave events, useHoverDirty sets DOM onmouseover and onmouseout events.

Installation

Run the following command:

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

Usage