useBreakpointState

useBreakpointState is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint.

Usage

import { useBreakpointState } from "@yamada-ui/react"
const [value, setValue] = useBreakpointState({ base: 1, md: 2 })