FormField

Required

Marking a FormField as required will display the requiredText and pass along the required prop to the child input. requiredText takes precedence over secondaryText.

<DemoLayout>
  <FormField
    input={TextInput}
    label="Name"
    required />
  <FormField
    input={TextInput}
    label="Nombre"
    required
    requiredText="Necesario" />
</DemoLayout>