react-formawesome-core
Version:
React validation form core lib
13 lines (12 loc) • 445 B
TypeScript
import * as React from "react";
export interface FormGroupContextInterface {
error?: string;
value: any;
isFocused: boolean;
onChange: (value: any) => void | Promise<void>;
onFocus: () => void | Promise<void>;
onBlur: () => void | Promise<void>;
registerElement: (element: any) => void;
unregisterElement: () => void;
}
export declare const FormGroupContext: React.Context<FormGroupContextInterface>;