Wit Form
Getting Started

Field Component

The same form features without writing a hook per input. Submit with the email empty to see the built-in required check.

How often?
Topics

What this shows

<Field> connects inputs without writing a hook per input.

  • Child element: <Field> passes value, onChange(event), onBlur, error, touched and extraInfo to its child.
  • Render function: onChange takes the new value directly, which suits radios, checkboxes and custom widgets.
  • required adds a "Required" check when there's no validate.
  • withFormProvider wraps the form in a FormProvider.

On this page