UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

21 lines (17 loc) 788 B
"use client"; const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs'); const require_use_breakpoint_value = require('./use-breakpoint-value.cjs'); let react = require("react"); react = require_rolldown_runtime.__toESM(react); //#region src/hooks/use-breakpoint/use-breakpoint-state.ts /** * `useBreakpointState` is a custom hook that takes a responsive object as an initial state and returns a state corresponding to the current breakpoint. * * @see https://yamada-ui.com/docs/hooks/use-breakpoint-state */ const useBreakpointState = (initialState) => { return (0, react.useState)(require_use_breakpoint_value.useBreakpointValue(initialState)); }; //#endregion exports.useBreakpointState = useBreakpointState; //# sourceMappingURL=use-breakpoint-state.cjs.map