@otitoju/formcraft-core
Version:
🚀 Lightweight, TypeScript-first form management library for React and React Native with built-in validation, zero dependencies, and excellent developer experience
10 lines • 578 B
TypeScript
import { type ReactNode } from "react";
import type { FormContextValue } from "../../types";
interface FormProviderProps<T extends Record<string, any> = Record<string, any>> {
children: ReactNode;
form: FormContextValue<T>;
}
export declare function FormProvider<T extends Record<string, any> = Record<string, any>>({ children, form, }: FormProviderProps<T>): import("react/jsx-runtime").JSX.Element;
export declare function useFormContext<T extends Record<string, any> = Record<string, any>>(): FormContextValue<T>;
export {};
//# sourceMappingURL=FormProvider.d.ts.map