use-idle
Detect if user does nothing on page
Import
Source
Docs
Package
Usage
Hook detect if user does nothing for given time in ms:
Current state: idle
Custom events
By default hook will listen to keypress, mousemove, touchmove, click and scroll events to set idle status. To change that provide a list of events in the options argument:
Current state: idle
Initial state
By default the hook will return an idle state. To change that provide an initial state value in the options argument:
Current state: not idle
Definition
Feedback
Your feedback is most valuable contribution to the project, please share how you use Mantine, what features are missing and what is done good
Leave feedback