@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
19 lines (15 loc) • 591 B
JavaScript
"use client";
import { useBreakpointValue } from "./use-breakpoint-value.js";
import { useState } from "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 useState(useBreakpointValue(initialState));
};
//#endregion
export { useBreakpointState };
//# sourceMappingURL=use-breakpoint-state.js.map