mirror of
https://github.com/LukeHagar/form.git
synced 2025-12-06 04:19:43 +00:00
* solid commit -a * fix failing tests and formatting * comments + removed unneeded computed * updated changes * prettierd * chore: add Solid Form to script to be deployed * fix: fix typing of solid's Subscribe data * chore: remove errant createEffect * chore: rename Solid's useForm and useField to createForm and createField * chore: remove old mention of React's memoization * chore: add Solid simple example * chore: add Solid yup example * chore: add Zod Solid example * docs: add initial docs for Solid package --------- Co-authored-by: Corbin Crutchley <git@crutchcorn.dev>
25 lines
710 B
Markdown
25 lines
710 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
|
|
```
|