FormField
#
Examples#
Use validationMessage with InputError Message
Error Message
#
Use validationMessage with controlled props#
Use validationMessage with SelectBanana
Error Message
#
Use yup validator with Inputthis is a required field
#
use function validator with Input#
Use function of array validator with Input#
APIProperty | 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 |