React Hooks Form

React Hooks Form

  • Guides
  • Components
  • Hooks
  • Github

›Components

Getting Started

  • Overview
  • Usage

Guides

  • Organizing Your Fields
  • Client-side Validation
  • Server-side Validation
  • Input Components
  • Form Submission
  • Using Hooks

Components

  • <Form />
  • <FormField />

Hooks

  • useFormFieldValue
  • useFormFieldMeta
  • useFormValues
  • useFormMeta
  • useForm

<FormField />

For examples on how to use FormField, please read the Input Component section.

Props you can pass to <FormField />

PropTypeDescription
namestringREQUIRED! Field name (This can be any lodash-like key)
componentstring/funcREQUIRED! Input component the field should render. You can use built-in HTML inputs or provide your custom component.
formNamestringThe form name that this field belongs to. You usually do NOT need this because FormField reads it from the context by default.

Any field other than the above ones that you pass to FormField will be passed to the input component.

← <Form />useFormFieldValue →
  • Props you can pass to <FormField />
Docs
Getting StartedGuidesComponentsHooks
Community
Stack Overflow
More
Star
Copyright © 2019 Mehdi Namvar