--- title: useBreakpointState description: "`useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint." links: - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/hooks/use-breakpoint --- ```tsx const [value, setValue] = useBreakpointState({ base: 1, md: 2 }) return ( ) ``` ## Usage ```tsx import { useBreakpointState } from "@yamada-ui/react" ``` ```tsx import { useBreakpointState } from "@/components/ui" ``` ```tsx import { useBreakpointState } from "@workspaces/ui" ``` ```tsx const [value, setValue] = useBreakpointState({ base: 1, md: 2 }) ```