exeform
  • Getting Started
  • Motivation
  • How It Works
  • Guides
    • Validation
    • Nested Structures
  • API
    • Form
    • Field
    • <Form />
    • useForm()
    • useField()
    • useCheckboxField()
    • useFieldValue()
    • useFormIsValid()
    • useFormContext()
Powered by GitBook
On this page
  • Import
  • Types
  • Example

Was this helpful?

  1. API

useFormIsValid()

This hook returns the current form validity state.

Import

import { useFormIsValid } from 'exeform';

Types

useFormIsValid(): boolean

Example

const Submit = () => {
  const isValid = useFormIsValid();
  
  return (
    <button disabled={!isValid} type="submit">
      Submit
    </button>
  );
};
PrevioususeFieldValue()NextuseFormContext()

Last updated 3 years ago

Was this helpful?