Hooks
useHover
A hook that returns a boolean value indicating whether the user is hovering over an element.
useHover
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. |