Skip to main content

Interface: FieldData<T, E, W>

Type parameters#

NameTypeDescription
TunknownField value type.
EunknownField error type.
WunknownField warning type.

Properties#

detached#

• detached: boolean

True if the current value is different from the pending value.


dirty#

• dirty: boolean

True if the current value is different from the initial value.


error#

• Optional error: E

The current field error value.


focused#

• focused: boolean

True if the field is currently focused.


initialValue#

• initialValue: T

The initial value set set by an update to the root form value state.


pendingValue#

• pendingValue: T

The pending value set set by an update to the root form value state.


touched#

• touched: boolean

True if the field value has been edited.


value#

• value: T

The current value of the field.


visited#

• visited: boolean

True if the field is has been or is currently focused.


warning#

• Optional warning: W

The current field warning value.