UNPKG

react-vite-themes

Version:

A test/experimental React theme system created for learning purposes. Features atomic design components, SCSS variables, and dark/light theme support. Not intended for production use.

19 lines 715 B
interface FormContextType { values: Record<string, unknown>; errors: Record<string, string[]>; touched: Record<string, boolean>; isDirty: boolean; isSubmitting: boolean; setFieldValue: (name: string, value: unknown) => void; setFieldTouched: (name: string) => void; getFieldError: (name: string) => string[]; isFieldTouched: (name: string) => boolean; hasErrors: boolean; resetForm: () => void; submitForm: () => Promise<void>; } declare const FormContext: import("react").Context<FormContextType | null>; export declare const useFormContext: () => FormContextType; export { FormContext }; export type { FormContextType }; //# sourceMappingURL=useFormContext.d.ts.map