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

baseformoptions.md

46 lines1.0 KB

Interface: BaseFormOptions<TFormData, TSubmitMeta>

Defined in: packages/form-core/src/FormApi.ts:364

An object representing the base properties of a form, unrelated to any validators

Extended by

Type Parameters

• TFormData

• TSubmitMeta = never

Properties

defaultValues?

optional defaultValues: TFormData;

Defined in: packages/form-core/src/FormApi.ts:368

Set initial values for your form.


onSubmitMeta?

optional onSubmitMeta: TSubmitMeta;

Defined in: packages/form-core/src/FormApi.ts:372

onSubmitMeta, the data passed from the handleSubmit handler, to the onSubmit function props