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

FieldMeta.md

66 lines1.0 KB

Type Alias: FieldMeta

type FieldMeta: object;

An object type representing the metadata of a field in a form.

Type declaration

errorMap

errorMap: ValidationErrorMap;

A map of errors related to the field value.

errors

errors: ValidationError[];

An array of errors related to the field value.

isDirty

isDirty: boolean;

A flag that is true if the field's value has been modified by the user. Opposite of isPristine.

isPristine

isPristine: boolean;

A flag that is true if the field's value has not been modified by the user. Opposite of isDirty.

isTouched

isTouched: boolean;

A flag indicating whether the field has been touched.

isValidating

isValidating: boolean;

A flag indicating whether the field is currently being validated.

Defined in

packages/form-core/src/FieldApi.ts:331