Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

installation.md

68 lines1.3 KB

1---
2id: installation
3title: Installation
4---
5​
6TanStack 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 your preferred package manager:
7​
8### React Example
9```bash
10# npm
11$ npm i @tanstack/react-form
12# pnpm
13$ pnpm add @tanstack/react-form
14# bun
15$ bun add @tanstack/react-form
16# yarn
17$ yarn add @tanstack/react-form
18```
19​
20### Vue Example
21```bash
22# npm
23$ npm i @tanstack/vue-form
24# pnpm
25$ pnpm add @tanstack/vue-form
26# bun
27$ bun add @tanstack/vue-form
28# yarn
29$ yarn add @tanstack/vue-form
30```
31​
32### Angular Example
33```bash
34# npm
35$ npm i @tanstack/angular-form
36# pnpm
37$ pnpm add @tanstack/angular-form
38# bun
39$ bun add @tanstack/angular-form
40# yarn
41$ yarn add @tanstack/angular-form
42```
43​
44### Solid Example
45```bash
46# npm
47$ npm i @tanstack/solid-form
48# pnpm
49$ pnpm add @tanstack/solid-form
50# bun
51$ bun add @tanstack/solid-form
52# yarn
53$ yarn add @tanstack/solid-form
54```
55​
56### Lit Example
57```bash
58# npm
59$ npm i @tanstack/lit-form
60# pnpm
61$ pnpm add @tanstack/lit-form
62# bun
63$ bun add @tanstack/lit-form
64# yarn
65$ yarn add @tanstack/lit-form
66```
67​
68> 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.