Skip to main content

Installation

Make sure you have "strict": true in your tsconfig.json compilerOptions and make sure you set your editors typescript version to v4.9 or above (or intellisense won't be as reliable).

Install package and dependencies with your preferred package manager:

npm

Install package

npm install @ts-react/form

Required peer dependencies

npm install zod react-hook-form @hookform/resolvers

yarn

Install package

yarn add @ts-react/form

Required peer dependencies

yarn add zod react-hook-form @hookform/resolvers

pnpm

Install package

pnpm add @ts-react/form

Required peer dependencies

pnpm add zod react-hook-form @hookform/resolvers