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

BaseFormOptions.md

48 lines1019 Bytes

Interface: BaseFormOptions<TFormData, TSubmitMeta>

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

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

Extended by

Type Parameters

TFormData

TFormData

TSubmitMeta

TSubmitMeta = never

Properties

defaultValues?

optional defaultValues: TFormData;

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

Set initial values for your form.


onSubmitMeta?

optional onSubmitMeta: TSubmitMeta;

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

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