Prompt Buddy logoPrompt Buddy

react-hook-form · React Hook Form Docs

useController

Teaches how to use the useController hook to build reusable controlled input components that have full access to form state, validation rules, and field state.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

useController

Teaches how to use the useController hook to build reusable controlled input components that have full access to form state, validation rules, and field state.

When To Use

Use when you need to wrap third-party UI components or custom input elements into the React Hook Form ecosystem using a controlled pattern.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/usecontroller-workflow-guide.mdDocumentation detailing the useController hook signature, props, return values, and usage examples for managing controlled components.Questions about documentation detailing the useController hook signature, props, return values, and usage examples for managing contr...

What This Skill Covers

  • useController: (props?: UseControllerProps) = { field: object, fieldState: object, formState: object }
  • Main sections: useController: (props?: UseControllerProps) = { field: object, fieldState: object, formState: object }, Props, Return, Examples.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://react-hook-form.com/docs/usecontroller