mui-x
mui-x copied to clipboard
[docs] Apply the new DX to the Button Field demos
Part of #14496
Packages
- [x] Introduce
DateRangePickerFieldPropsandDateTimeRangePickerFieldProps - [x] Make sure every picker passes a format to the field, the date range ones did not (the
useDesktopPickerand equivalent hooks to not enforce it yet because it was non trivial, once we have more info passed through the context it should be easier to enforce this kind of things, right now the typing is super hard to modify without introducing TS errors).
Docs
- [x] Move each category of custom behavior demo in a folder to make the "custom-field" folder more readable
- [x] Add validation support on the demos
- [x] Add placeholder support on the demos
- [x] Stop relying on complex types and instead use the new
DatePickerFieldPropspattern - [x] Pass the forwarded props to the
Buttonto supportsx,classNameetc... - [x] Improve the phrasing in the impacted doc section
I did not migrate those demo to use the new multi file demo feature because it is broken when used inside nested folder.
Deploy preview: https://deploy-preview-14860--material-ui-x.netlify.app/
Updated pages:
Generated by :no_entry_sign: dangerJS against e532a224ac1d472146e3c2e69d380872a896a133
This pull request has conflicts, please resolve those before we can evaluate the pull request.
This pull request has conflicts, please resolve those before we can evaluate the pull request.