UNPKG

@ark-ui/react

Version:

A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.

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