@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
16 lines (14 loc) • 735 B
TypeScript
import { Breakpoint, ColorMode, System } from "../../core/system/index.types.js";
import { ColorModeArray, ResponsiveObject } from "../../core/css/index.types.js";
import "../../core/index.js";
//#region src/hooks/use-value/index.d.ts
/**
* `useValue` is a custom hook that combines `useBreakpointValue` and `useColorModeValue`.
*
* @see https://yamada-ui.com/docs/hooks/use-value
*/
declare const useValue: <Y>(value: ColorModeArray<Y, false> | ResponsiveObject<Y, false> | Y) => Y;
declare const getValue: <Y>(value: ColorModeArray<Y, false> | ResponsiveObject<Y, false> | Y) => (system: System, colorMode: ColorMode, breakpoint: Breakpoint) => Y;
//#endregion
export { getValue, useValue };
//# sourceMappingURL=index.d.ts.map