Skip to main content

<DebugForm />

Component to be used only for development purposes that shows the state of the form.

import { DebugForm } from "@mozartspa/mobx-form"

Props#

form#

form?: Form<Values> | undefined

The form instance whose state should be shown. If not specified, it will be used the form instance available in FormContext.


showAll#

showAll?: boolean

Whether or not to show all the state of the form.

showValues#

showValues?: boolean

Whether or not to show the values of the form.


showErrors#

showErrors?: boolean

Whether or not to show the errors of the form.


showTouched#

showTouched?: boolean

Whether or not to show the touched state of the form.


showInfo#

showInfo?: boolean

Whether or not to show the isDirty, isValid, isValidating and isSubmitting state of the form.