useValue

useValue is a custom hook that combines useBreakpointValue and useColorModeValue.

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

Usage

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

Uses Components & Hooks

useBreakpoint

useBreakpoint is a custom hook that returns the current breakpoint. This hook monitors changes in the window size and returns the appropriate value.

Used By Components & Hooks