useBoolean

useBoolean is a custom hook used to manage boolean values using on, off, and toggle functions.

state: false

Usage

import { useBoolean } from "@yamada-ui/react"
const [flg, { on, off, toggle }] = useBoolean()

Using Initial Values

state: true