Hooks · hook · 4K
Tells you when the user has been idle for a given time. Passive pointer, key, wheel and touch listeners only write a timestamp and one timer re-checks, so moving the mouse never churns timers. Never goes idle in a hidden tab; a canIdle veto, reset() and activate().
pnpm dlx shadcn@latest add @s7ui/use-idle