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

shared-form.tsx

20 lines343 Bytes

1import { formOptions } from '@tanstack/react-form'
2​
3export const peopleFormOpts = formOptions({
4 defaultValues: {
5 fullName: '',
6 email: '',
7 phone: '',
8 address: {
9 line1: '',
10 line2: '',
11 city: '',
12 state: '',
13 zip: '',
14 },
15 emergencyContact: {
16 fullName: '',
17 phone: '',
18 },
19 },
20})