@chakra-ui/react
Version:
Responsive and accessible React UI components built with React and Emotion
18 lines (17 loc) • 839 B
TypeScript
import type { JsxFactoryOptions } from "./factory.types";
import { type RecipeKey, type UseRecipeOptions } from "./use-recipe";
export declare function createRecipeContext<K extends RecipeKey>(options: UseRecipeOptions<K>): {
withContext: <T, P>(Component: React.ElementType<any>, options?: JsxFactoryOptions<P>) => React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
PropsProvider: import("react").Provider<Record<string, any>>;
withPropsProvider: <P>() => React.Provider<Partial<P>>;
usePropsContext: () => Record<string, any>;
useRecipeResult: (props: any) => {
styles: Readonly<import("./css.types").SystemStyleObject>;
className: string;
props: {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};
};
};