FormFieldcomponent

FormField({ name, ...props }: InputProps): ReactElement
ParamType
propsInputProps
Base props shared by every form input (name, title, placeholder, required/disabled state, and error message). required
    .namestring
The name="" prop of the input. required
    .titlestring
Friendly title for the input.
    .placeholderstring
Placeholder for the input. Defaults to title. Set to "" to show no placeholder.
    .requiredboolean
Whether the input is required.
    .disabledboolean
Whether the input is disabled.
    .messagestring
Any error message for the input.
Return
ReactElement
A <Field> wrapping a SchemaInput bound to the named field.

Show a <Field> (label, input, and message) for a single named property of the current form.

Examples

<FormField name="email" />