@ark-ui/react
Version:
A collection of unstyled, accessible UI components for React, utilizing state machines for seamless interaction.
12 lines (11 loc) • 440 B
TypeScript
interface CreateContextOptions<T> {
strict?: boolean | undefined;
hookName?: string | undefined;
providerName?: string | undefined;
errorMessage?: string | undefined;
name?: string | undefined;
defaultValue?: T | undefined;
}
type CreateContextReturn<T> = [React.Provider<T>, () => T, React.Context<T>];
export declare function createContext<T>(options?: CreateContextOptions<T>): CreateContextReturn<T>;
export {};