See the FieldState documentation. This interface contains every option from it except for:
blur
,change
,focus
,length
,name
,value
,This interface is not necessary to be implemented because it covers only the one case when all your properties are string and you do not plan to use specific property names.
Works as a isProvider for the @form.
Creates tokens to bind decorators with each other.
A default version of the @fieldAdvanced with the token already provided.
A decorator that makes a class declaration a 🏁 FinalForm field with a form instance as a context value. The @consumer is used internally.
a token issued by a createFormToken function that connects all decorators in a single working system.
an object that contains options to tune the field behavior.
A default version of the @formAdvanced with the token already provided.
A decorator that makes a class declaration a 🏁 FinalForm provider with a form instance as a context value. The @provider decorator is used internally.
a token issued by a createFormToken function that connects all decorators in a single working system.
an object that contains options to tune the form behavior.
A default version of the @gearAdvanced with the token already provided.
A decorator that converts a class property to a part of the 🏁 Final Form interface. Both @form and @field decorators require several specific @gear properties to exist.
If you do not plan to use the specific properties names, you can implement the FormGears interface for the form or FieldGears for the field.
a token issued by a createFormToken function that connects all decorators in a single working system.
a specific name of a gear that describes the responsibility of the property this decorator is applied to. If it is omitted, the name (or the description if it is a symbol) of the property will be used.
A default version of the @isFormAdvanced with the token already provided.
A default version of the @optionAdvanced with the token already provided.
A decorator that converts a class property to a 🏁 Final Form option. Both @form and @field have their options. Some options are required; others can be omitted.
If you do not plan to use the specific properties names, you can implement the FormGears interface for the form or FieldGears for the field.
a token issued by a createFormToken function that connects all decorators in a single working system.
a specific name of an option that describes the responsibility of the property this decorator is applied to. If it is omitted, the name (or the description if it is a symbol) of the property will be used.
Generated using TypeDoc
This module provides tools to handle web forms. Works as a connector to a 🏁 Final Form.