FieldMeta

Type Alias: FieldMeta

ts
type FieldMeta: object;
type FieldMeta: object;

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

Type declaration

errorMap

ts
errorMap: ValidationErrorMap;
errorMap: ValidationErrorMap;

A map of errors related to the field value.

errors

ts
errors: ValidationError[];
errors: ValidationError[];

An array of errors related to the field value.

isBlurred

ts
isBlurred: boolean;
isBlurred: boolean;

A flag indicating whether the field has been blurred.

isDirty

ts
isDirty: boolean;
isDirty: boolean;

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

isPristine

ts
isPristine: boolean;
isPristine: boolean;

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

isTouched

ts
isTouched: boolean;
isTouched: boolean;

A flag indicating whether the field has been touched.

isValidating

ts
isValidating: boolean;
isValidating: boolean;

A flag indicating whether the field is currently being validated.

Defined in

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

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.