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

installation.md

86 lines1.5 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​
10```bash
11# npm
12$ npm i @tanstack/react-form
13# pnpm
14$ pnpm add @tanstack/react-form
15# bun
16$ bun add @tanstack/react-form
17# yarn
18$ yarn add @tanstack/react-form
19```
20​
21### Vue Example
22​
23```bash
24# npm
25$ npm i @tanstack/vue-form
26# pnpm
27$ pnpm add @tanstack/vue-form
28# bun
29$ bun add @tanstack/vue-form
30# yarn
31$ yarn add @tanstack/vue-form
32```
33​
34### Angular Example
35​
36```bash
37# npm
38$ npm i @tanstack/angular-form
39# pnpm
40$ pnpm add @tanstack/angular-form
41# bun
42$ bun add @tanstack/angular-form
43# yarn
44$ yarn add @tanstack/angular-form
45```
46​
47### Solid Example
48​
49```bash
50# npm
51$ npm i @tanstack/solid-form
52# pnpm
53$ pnpm add @tanstack/solid-form
54# bun
55$ bun add @tanstack/solid-form
56# yarn
57$ yarn add @tanstack/solid-form
58```
59​
60### Lit Example
61​
62```bash
63# npm
64$ npm i @tanstack/lit-form
65# pnpm
66$ pnpm add @tanstack/lit-form
67# bun
68$ bun add @tanstack/lit-form
69# yarn
70$ yarn add @tanstack/lit-form
71```
72​
73### Svelte Example
74​
75```bash
76# npm
77$ npm i @tanstack/svelte-form
78# pnpm
79$ pnpm add @tanstack/svelte-form
80# bun
81$ bun add @tanstack/svelte-form
82# yarn
83$ yarn add @tanstack/svelte-form
84```
85​
86> 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.