react-mui-form-validator
Advanced tools
+1
-1
| { | ||
| "name": "react-mui-form-validator", | ||
| "version": "1.5.4", | ||
| "version": "1.5.5", | ||
| "description": "Validator for forms designed with material-ui components.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
+2
-7
@@ -1,2 +0,1 @@ | ||
| ## Validation component for material-ui forms | ||
@@ -61,8 +60,4 @@ | ||
| value={email} | ||
| validators={[ | ||
| { | ||
| validator: "isEmail", | ||
| }, | ||
| ]} | ||
| errorMessages={["Email is required"]} | ||
| validators={[{ validator: "required" }, { validator: "isEmail" }]} | ||
| errorMessages={["Email required", "Enter a valid email"]} | ||
| fullWidth | ||
@@ -69,0 +64,0 @@ /> |
842521
073
-6.41%