useIdle

useIdle is a custom hook that detects whether the user has been idle for a certain amount of time in milliseconds.

Current state: idle

Usage

import { useIdle } from "@yamada-ui/react"
const idle = useIdle(2000)