useHover
Tracks the hover state of a specified element.
useHover
Installation
Usage
API
useHover
Returns a boolean value indicating whether the user is hovering over the element.
Parameters
| Name | Type | Description |
|---|---|---|
| T | T | The type of the element to track. |
Returns
| Name | Type | Description |
|---|---|---|
| ref | Ref | A ref to the element to track. |
| isHovering | boolean | A boolean value indicating whether the user is hovering over the element. |