useTimeout

useTimeout is a custom hook that executes a function after a specified number of milliseconds.

Current state: 1

Usage

import { useTimeout } from "@yamada-ui/react"
const [state, setState] = useState<number>(1)

useTimeout(() => setState((prev) => prev + 1), 3000)

Used By Components & Hooks

Loading

Loading is a component displayed during waiting times, such as when data is being loaded.

Snacks

Snacks is a component for controlling notifications used in forms and other similar situations.