UNPKG

@chakra-ui/react

Version:

Responsive and accessible React UI components built with React and Emotion

15 lines (14 loc) 457 B
export interface CreateContextOptions<T> { strict?: boolean | undefined; hookName?: string | undefined; providerName?: string | undefined; errorMessage?: string | undefined; name?: string | undefined; defaultValue?: T | undefined; } export type CreateContextReturn<T> = [ React.Provider<T>, () => T, React.Context<T> ]; export declare function createContext<T>(options?: CreateContextOptions<T>): CreateContextReturn<T>;