You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ Date ([DateValidator](https://github.com/NewOldMax/react-material-ui-form-validator/blob/master/src/DateValidator.jsx))
14
+
+ Time ([TimeValidator](https://github.com/NewOldMax/react-material-ui-form-validator/blob/master/src/TimeValidator.jsx))
15
15
16
16
Default validation rules:
17
17
+ matchRegexp
@@ -30,7 +30,7 @@ Default validation rules:
30
30
31
31
### Usage
32
32
33
-
You can pass any props of field components except ``errorText``, use ``errorMessages`` instead.
33
+
You can pass any props of field components, but note that ``errorText`` prop will be replaced when validation errors occurred.
34
34
Your component must [provide a theme](http://www.material-ui.com/#/get-started/usage).
35
35
36
36
````javascript
@@ -151,24 +151,63 @@ class ResetPasswordForm extends React.Component {
151
151
Currently material-ui [doesn't support](https://github.com/callemall/material-ui/issues/3771) error messages for switches, but you can easily add your own:
152
152
````javascript
153
153
import React from 'react';
154
+
import { red300 } from 'material-ui/styles/colors';
154
155
import Checkbox from 'material-ui/Checkbox';
155
156
import { ValidatorComponent } from 'react-material-ui-form-validator';
156
157
157
-
export default class CustomCheckboxValidator extends ValidatorComponent {
158
+
class CheckboxValidatorElement extends ValidatorComponent {
0 commit comments