--- title: useBreakpointState description: "`useBreakpointState`は、提供されたオブジェクトから現在のブレイクポイントを初期値として返すカスタムフックです。" 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 ( ) ``` ## 使い方 ```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 }) ```