UNPKG

@barguide/react-hooks

Version:
8 lines (7 loc) 332 B
/** * @name useFormValidation * @description Simple hook that takes a form element as a ref and returns * the validity using HTML validation and the rules on the form inputs */ declare const useFormValidation: (formRef: React.RefObject<HTMLFormElement>, dependencies: unknown[]) => boolean; export { useFormValidation };