FormField
Examples#
Use validationMessage with Input#
Error Message
Error Message
Use validationMessage with controlled props#
Use validationMessage with Select#
Banana
Error Message
Use yup validator with Input#
this is a required field
use function validator with Input#
Use function of array validator with Input#
API#
| Property | Description | Type | Default |
|---|---|---|---|
label | The label of field | string | |
required | Show the * after the field label | boolean | false |
validator | validator can be function / object array / yup schema, see above examples to learn how to use it | Validator | |
validationMessage | display message on field | ReactNode |