Optional
controller: FormControllerobtained by using useFormController
hook, used to connect to form state.
Injected automatically via React Context when used inside FormProvider
component.
object containing values of all fields. It's shape is determined by FormSchema
const Schema = new FormSchemaBuilder()...;
const MyForm: React.FC = () => {
const controller = useFormController({ Schema })
const values = useFormValues(Schema, controller)
...
}
Generated using TypeDoc
Hook used to gain access to values of all form fields. Causes the component to subscribe to changes of all field values.