API Reference
- JavaScript Reference
- Classes / FieldApi
- Classes / FormApi
- Functions / formOptions
- Functions / mergeForm
- Interfaces / FieldApiOptions
- Interfaces / FieldOptions
- Interfaces / FieldValidators
- Interfaces / FormOptions
- Interfaces / FormValidators
- Types / DeepKeys
- Types / DeepValue
- Types / AnyFieldMeta
- Types / BaseFormState
- Types / DerivedFormState
- Types / Updater
- Types / UpdaterFn
- Types / ValidationError
- Types / ValidationMeta
- React Reference
- Variables / Field
- Functions / useField
- Functions / useForm
- Types / FieldComponent
- Types / UseField
FieldOptions
Defined in: packages/form-core/src/FieldApi.ts:331
An object type representing the options for a field in a form.
Extends#
- FieldExtraOptions<TParentData, TName, TData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync>
Type Parameters#
TParentData#
TParentData
TName#
TName extends DeepKeys<TParentData>
TData#
TData extends DeepValue<TParentData, TName>
TOnMount#
TOnMount extends undefined | FieldValidateOrFn<TParentData, TName, TData>
TOnChange#
TOnChange extends undefined | FieldValidateOrFn<TParentData, TName, TData>
TOnChangeAsync#
TOnChangeAsync extends undefined | FieldAsyncValidateOrFn<TParentData, TName, TData>
TOnBlur#
TOnBlur extends undefined | FieldValidateOrFn<TParentData, TName, TData>
TOnBlurAsync#
TOnBlurAsync extends undefined | FieldAsyncValidateOrFn<TParentData, TName, TData>
TOnSubmit#
TOnSubmit extends undefined | FieldValidateOrFn<TParentData, TName, TData>
TOnSubmitAsync#
TOnSubmitAsync extends undefined | FieldAsyncValidateOrFn<TParentData, TName, TData>
TOnDynamic#
TOnDynamic extends undefined | FieldValidateOrFn<TParentData, TName, TData>
TOnDynamicAsync#
TOnDynamicAsync extends undefined | FieldAsyncValidateOrFn<TParentData, TName, TData>
Properties#
asyncAlways?#
optional asyncAlways: boolean;Defined in: packages/form-core/src/types.ts:982
If true, always run async validation, even if there are errors emitted during synchronous validation.
Inherited from#
FieldLikeOptions.asyncAlwaysasyncDebounceMs?#
optional asyncDebounceMs: number;Defined in: packages/form-core/src/types.ts:978
The default time to debounce async validation if there is not a more specific debounce time passed.
Inherited from#
FieldLikeOptions.asyncDebounceMsdefaultMeta?#
optional defaultMeta: Partial<FieldLikeMeta<TParentData, TName, TData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, any, any, any, any, any, any, any, any, any>>;Defined in: packages/form-core/src/types.ts:986
An optional object with default metadata for the field.
Inherited from#
FieldLikeOptions.defaultMetadefaultValue?#
optional defaultValue: NoInfer<TData>;Defined in: packages/form-core/src/types.ts:974
An optional default value for the field.
Inherited from#
FieldLikeOptions.defaultValuedisableErrorFlat?#
optional disableErrorFlat: boolean;Defined in: packages/form-core/src/types.ts:1014
Disable the flat(1) operation on field.errors. This is useful if you want to keep the error structure as is. Not suggested for most use-cases.
Inherited from#
FieldLikeOptions.disableErrorFlatlisteners?#
optional listeners: FieldListeners<TParentData, TName, TData>;Defined in: packages/form-core/src/FieldApi.ts:325
A list of listeners which attach to the corresponding events
Inherited from#
FieldExtraOptions.listenersname#
name: TName;Defined in: packages/form-core/src/types.ts:970
The field name. The type will be DeepKeys<TParentData> to ensure your name is a deep key of the parent dataset.
Inherited from#
FieldLikeOptions.namevalidators?#
optional validators: FieldValidators<TParentData, TName, TData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync>;Defined in: packages/form-core/src/FieldApi.ts:307
A list of validators to pass to the field
Inherited from#
FieldExtraOptions.validators