useValue

useValueは、useBreakpointValueuseColorModeValueを組み合わせたカスタムフックです。

The current breakpoint is "base"
The current colorMode is "light"

使い方

import { useValue } from "@yamada-ui/react"
const color = useValue({ base: "red", md: "green" })