FieldValidations

The FieldValidations component is rarely used by itself. Instead, validations should be sent via the validations prop on the Field component.

Props

NameTypeDescription
validations
arrayA list of validations to be displayed to the user
centered
boolVisually centeres the validations
className
unionAny classes to pass down

FieldValidations (default)

An example of FieldValidations (default)
Your email is incorrect
<FieldValidations validations={[ { message: 'Your email is incorrect' } ]} />