Open History to see the last commit
1import { createFormHook, getFormHookHelpers } from '@tanstack/vue-form'
2import SubscribeButton from '../components/SubscribeButton.vue'
3import TextField from '../components/TextField.vue'
4β
5const { fieldComponent } = getFormHookHelpers()
6β
7const AppTextField = fieldComponent.strict(TextField, 'field')
8β
9export const {
10 appFormOptions,
11 defineAppFieldGroup,
12 useAppForm,
13 useFormContext,
14} = createFormHook({
15 fieldComponents: {
16 TextField: AppTextField,
17 },
18 formComponents: {
19 SubscribeButton,
20 },
21})