Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com
Open History to see the last commit

app.form.ts

24 lines468 Bytes

1import { createFormHook } from "@tanstack/react-form";
2​
3import {
4 // Select,
5 // SubscribeButton,
6 // TextArea,
7 TextArea,
8 TextField,
9} from "../components/app.formComponents";
10import { fieldContext, formContext } from "./app.form-context";
11​
12export const { useAppForm } = createFormHook({
13 fieldComponents: {
14 TextField,
15 TextArea,
16 // Select,
17 // TextArea,
18 },
19 formComponents: {
20 // SubscribeButton,
21 },
22 fieldContext,
23 formContext,
24});