UNPKG

@yamada-ui/react

Version:

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

28 lines (27 loc) 751 B
import * as React from "react"; //#region src/utils/context.d.ts type CreateContextReturn<Y> = [React.Context<Y>, () => Y]; declare function createContext<Y = any>(options: { name?: string; defaultValue?: Y; errorMessage?: string; hookName?: string; strict?: true; }): CreateContextReturn<Y>; declare function createContext<Y = any>(options: { defaultValue: Y; name?: string; errorMessage?: string; hookName?: string; strict?: false; }): CreateContextReturn<Y>; declare function createContext<Y = any>(options: { name?: string; defaultValue?: Y; errorMessage?: string; hookName?: string; strict?: false; }): CreateContextReturn<undefined | Y>; //#endregion export { createContext }; //# sourceMappingURL=context.d.ts.map