Skip to main content

<Field />

Component that is a thin wrapper around useField.

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

Props#

It has the same props as UseFieldOptions, plus:

name#

name: string

The name of the field.


children#

children: (props: UseFieldResult) => ReactElement

A function that receives a field instance and returns a ReactElement.