mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 20:37:50 +00:00
* feat: mount method on FormApi * fix solid-form test case * fix: added form.mount() to tests * feat: valibot-form-adapter * chore: add missing config items * docs: add Valibot React example * docs: add Solid Valibot example * docs: add valibot Vue example * fix: valibot async adapter now works * docs: add docs for valibot adapter --------- Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
27 lines
762 B
Markdown
27 lines
762 B
Markdown
---
|
|
id: installation
|
|
title: Installation
|
|
---
|
|
|
|
TanStack Form is compatible with various front-end frameworks, including React, Vue, and Solid. To use TanStack Form with your desired framework, install the corresponding adapter via NPM:
|
|
|
|
```bash
|
|
$ npm i @tanstack/react-form
|
|
# or
|
|
$ pnpm add @tanstack/vue-form
|
|
# or
|
|
$ yarn add @tanstack/solid-form
|
|
```
|
|
|
|
> Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from `node_modules` yourselves.
|
|
|
|
In addition, we support both Zod and Yup as validators through official validator packages:
|
|
|
|
```bash
|
|
$ npm i @tanstack/zod-form-adapter zod
|
|
# or
|
|
$ npm i @tanstack/yup-form-adapter yup
|
|
# or
|
|
$ npm i @tanstack/valibot-form-adapter valibot
|
|
```
|