{
 "kind": "tool",
 "slug": "hookform",
 "path": "tools/hookform/",
 "name": "React Hook Form Resolvers",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Forms, validation and schemas",
   "tools/forms-validation/"
  ]
 ],
 "lead": "Validation resolvers for React Hook Form supporting Zod, Yup, and others.",
 "chips": [
  {
   "label": "Forms, validation and schemas",
   "path": "tools/forms-validation/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @hookform/resolvers"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/react-hook-form/resolvers"
  },
  {
   "label": "Website",
   "href": "https://react-hook-form.com"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/react-hook-form/resolvers"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 24, 2026. ",
   "src": "https://github.com/react-hook-form/resolvers"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "499 projects",
   "status": "info",
   "sub": "#4 of 63 in its category",
   "note": "Dependency in 499 public GitHub projects set up for AI coding agents that we scanned (8.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What React Hook Form Resolvers does",
   "parts": [
    {
     "t": "prose",
     "text": "It is a set of adapters, not a validator: one package with a separate entry point per library (<code>@hookform/resolvers/zod</code>, <code>/yup</code>, <code>/joi</code> and so on) that plugs the 20 resolvers in its README comparison table into React Hook Form's <code>resolver</code> option."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "React Hook Form Resolvers popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "74",
       "of": "/ 100",
       "l": "Gid Score, #252 overall"
      },
      {
       "n": "54.9M",
       "l": "downloads a week, npm"
      },
      {
       "n": "2,264",
       "l": "GitHub stars"
      },
      {
       "n": "499",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How React Hook Form Resolvers is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "React Hook Form Resolvers is a dependency in 499 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (10.3% of the 4,867 JavaScript/TypeScript ones), #4 of 63 in forms, validation and schemas.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,990; those are left out of every share on this page.",
      "The most used alternative in our scan is Valibot (33 projects).",
      "Projects that use it most often also use React Hook Form (99.2%), Zod (98.6%), clsx (92.4%).",
      "It is more common in projects set up for Roo Code (14.4%) than for OpenCode (4.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "269 projects, 11.0%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "235 projects, 7.2%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "213 projects, 7.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "34 projects, 12.2%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "28 projects, 5.9%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "27 projects, 5.8%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "16 projects, 4.7%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "16 projects, 14.4%",
       "v": "Roo Code",
       "path": "agents/roo-code/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 99.2% of its projects",
       "v": "React Hook Form",
       "path": "tools/react-hook-form/"
      },
      {
       "l": "In 98.6% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 92.4% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 91.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 91.6% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 87.2% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 78.0% of its projects",
       "v": "Radix UI",
       "path": "tools/radix-ui/"
      },
      {
       "l": "In 99.6% of its projects",
       "v": "React",
       "path": "tools/react/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "React Hook Form Resolvers in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Keep the schema library you already have",
       "v": "You add this package beside your existing validation library. Each library has its own import path, such as <code>@hookform/resolvers/zod</code> or <code>@hookform/resolvers/yup</code>."
      },
      {
       "l": "Form types come from the schema",
       "v": "With a resolver that supports inference, <code>useForm</code> needs no generic. The README's Zod example passes only <code>zodResolver(schema)</code>, and the output type is inferred."
      },
      {
       "l": "Same call shape for every adapter",
       "v": "Each resolver takes the schema, optional library-specific schema options, and resolver options. The resolver options choose <code>sync</code> or <code>async</code> mode. The README says <code>async</code> is the default."
      },
      {
       "l": "All errors per field with many resolvers",
       "v": "The README's comparison table has a <code>criteriaMode</code> column. It marks <code>firstError | all</code> for Zod, Yup, Valibot, Effect, Standard Schema, class-validator, TypeBox, VineJS, AJV, joi, vest and others."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Inference and error modes vary by library",
       "v": "The README's table marks AJV, ata-validator, fluentvalidation-ts, joi, Nope, typeschema and vest as not inferring values from the schema. It marks Arktype, computed-types, fluentvalidation-ts, io-ts, Nope, Superstruct and typanion as <code>firstError</code> only. Check the table before you pick a library."
      },
      {
       "l": "Zod <code>.default()</code> and a single generic conflict",
       "v": "A Zod field with <code>.default(...)</code> is optional on the input type but required on the output type. Writing <code>useForm&lt;T&gt;</code> with one type then conflicts with <code>zodResolver</code>. The README says to omit the generic or pass all three."
      },
      {
       "l": "Yup context belongs on useForm",
       "v": "Context passed through <code>yupResolver</code>'s <code>schemaOptions</code> is overridden by the form context. The README says to put it in <code>useForm({ context })</code> instead."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Zod schema wired into useForm"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Tsx",
       "code": "import { useForm } from 'react-hook-form';\nimport { zodResolver } from '@hookform/resolvers/zod';\nimport { z } from 'zod'; // or 'zod/v4'\n\nconst schema = z.object({\n  name: z.string().min(1, { message: 'Required' }),\n  age: z.number().min(10),\n});\n\nconst App = () => {\n  const {\n    register,\n    handleSubmit,\n    formState: { errors },\n  } = useForm({\n    resolver: zodResolver(schema),\n  });\n\n  return (\n    <form onSubmit={handleSubmit((d) => console.log(d))}>\n      <input {...register('name')} />\n      {errors.name?.message && <p>{errors.name?.message}</p>}\n      <input type=\"number\" {...register('age', { valueAsNumber: true })} />\n      {errors.age?.message && <p>{errors.age?.message}</p>}\n      <input type=\"submit\" />\n    </form>\n  );\n};"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about React Hook Form Resolvers",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "GitHub Sponsors: https://github.com/bluebill1049",
        "GitHub Sponsors: https://github.com/jorisre",
        "Patreon: https://patreon.com/bluebill1049",
        "Open Collective: https://opencollective.com/react-hook-form",
        "7 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "@hookform/error-message: Form error message component",
        "@hookform/devtools: Form devtools",
        "react-hook-form: Form state hook",
        "zod: Schema validation",
        "clsx: Class name builder",
        "lucide-react: Icons"
       ]
      },
      {
       "title": "More in Forms, validation and schemas",
       "path": "tools/forms-validation/",
       "items": [
        {
         "text": "Zod",
         "path": "tools/zod/"
        },
        {
         "text": "React Hook Form",
         "path": "tools/react-hook-form/"
        },
        {
         "text": "Pydantic",
         "path": "tools/pydantic/"
        },
        {
         "text": "Ajv",
         "path": "tools/ajv/"
        },
        {
         "text": "jsonschema",
         "path": "tools/jsonschema/"
        },
        {
         "text": "ajv-formats",
         "path": "tools/ajv-formats/"
        },
        {
         "text": "zod-to-json-schema",
         "path": "tools/zod-to-json-schema/"
        },
        {
         "text": "Protocol Buffers",
         "path": "tools/protobuf/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "React Hook Form Resolvers",
       "me": true,
       "facts": [
        "MIT",
        "Gid 74",
        "54.9M/wk"
       ]
      },
      {
       "name": "Valibot",
       "why": "Modular and type-safe schema validation library for structural data with minimal bundle size.",
       "path": "tools/valibot/",
       "facts": [
        "MIT",
        "Gid 68",
        "36M/wk"
       ]
      },
      {
       "name": "Yup",
       "why": "Simple schema validation library for JavaScript with chainable API and error handling.",
       "path": "tools/yup/",
       "facts": [
        "MIT",
        "Gid 69",
        "16.6M/wk"
       ]
      },
      {
       "name": "Formik",
       "why": "Popular React form state management library with validation and submission handling.",
       "path": "tools/formik/",
       "facts": [
        "Apache-2.0",
        "Gid 66",
        "6.4M/wk"
       ]
      }
     ],
     "more": "Compare React Hook Form Resolvers with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @hookform/resolvers"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## React Hook Form Resolvers\n- Install `@hookform/resolvers` alongside the validation library, and import the resolver from its subpath, e.g. `import { zodResolver } from '@hookform/resolvers/zod'`.\n- Pass the resolver as `useForm({ resolver: zodResolver(schema) })`. Omitting the generic lets the form types be inferred from the resolver.\n- If a Zod schema uses `.default(...)` on a field, do not pass a single generic `useForm<T>`. Either omit the generic or pass all three: `useForm<z.input<typeof schema>, unknown, z.output<typeof schema>>`.\n- For Yup, pass context via `useForm({ context })`, not via `yupResolver`'s `schemaOptions.context`, which is overridden.\n- `register('age', { valueAsNumber: true })` requires react-hook-form v6.12.0 or later.\n- Only set `criteriaMode: 'all'` with resolvers the README table lists as supporting `all`. The default is `firstError`.\n- With class-validator, set `\"strictPropertyInitialization\": false` and `\"experimentalDecorators\": true` in `tsconfig.json`. With Ajv, use `minLength: 1` to implement a required field.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @hookform/resolvers"
  ],
  [
   "Category",
   "Forms, validation and schemas"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v5.9.1, August 17, 2026"
  ],
  [
   "On GitHub since",
   "April 2020"
  ],
  [
   "Gid Score",
   "73.5"
  ],
  [
   "Rank in category",
   "#4 of 63"
  ],
  [
   "GitHub",
   "react-hook-form/resolvers"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/react-hook-form.png"
}