@knightburton/react-use-form
Version:
React hook to handle form change and validation.
8 lines (7 loc) • 318 B
TypeScript
export declare const REQUIRED_REGEX: RegExp;
export declare const REQUIRED_ERROR = "This field is required.";
export declare const INVALID_FIELD = "This field is not valid.";
export declare const DEFAULT_OPTIONS: {
PREVENT_DEFAULT_EVENT_ON_SUBMIT: boolean;
STOP_PROPAGATION_EVENT_ON_SUBMIT: boolean;
};