DatePicker is making use of the TextField component, but does not accept all of TextField's props such as errorText. This kind of functionality would be extremely helpful for presenting date validation errors.
Is there a particular reason why this functionality isn't already included? I'm willing to create and open a PR if the functionality is desired.
This PR would be very useful, same thing is for TimePicker, it also could have errorText prop.
Is there a particular reason why this functionality isn't already included?
It is included since unused props are spread to TextField, the props just aren't documented in DatePicker & TimePicker. A PR would be welcome - you simply need to copy the relevant propTypes and their comments from TextField to DatePicker & TimePicker.
Dupe #3172.
Most helpful comment
It is included since unused props are spread to TextField, the props just aren't documented in DatePicker & TimePicker. A PR would be welcome - you simply need to copy the relevant propTypes and their comments from TextField to DatePicker & TimePicker.
Dupe #3172.