✦ HookForm FieldTwitterTwitter (opens in a new tab)GithubGithub (opens in a new tab)
  • Introduction
  • Quick start
  • Guide
    • Create Field
    • Create Own Field
    • Form
  • API Reference
    • Create Field API
    • Form API
    • Form Control API
    • Form Description API
    • Form Field API
    • Form Item API
    • Form Label API
    • Form Message API
    • Use Form Field API
    • Use Form State API
  • Introduction
  • Quick start
  • Guide
    • Create Field
    • Create Own Field
    • Form
  • API Reference
    • Create Field API
    • Form API
    • Form Control API
    • Form Description API
    • Form Field API
    • Form Item API
    • Form Label API
    • Form Message API
    • Use Form Field API
      • Returns
      • Example
    • Use Form State API
  • Twitter (opens in a new tab)
  • Github (opens in a new tab)

On This Page

  • Returns
  • Example
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub
API Reference
Use Form Field API

useFormField

useFormField is a custom hook that provides access to the current form field's context, such as value, error, and helper methods.

Returns

An object containing the current field's state and helpers.

Example

const { value, error, setValue } = useFormField();
Form Message APIUse Form State API

MIT 2025 © hookform-field.