A hook to detect long hover on an element.
Argument value | Type | Description | Default |
---|---|---|---|
callback | Function | Callback function to be called when long hover is detected | undefined |
options | Object | See table below | undefined |
Options value | Type | Description | Default |
---|---|---|---|
duration | Number | The duration (in ms) after which long hover is detected | 500 |
Return value | Type | Description | Default |
---|---|---|---|
ref | Callback Ref | A ref that can be used on the element you want to detect long hover on | undefined |
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!