Reputation: 657
Currently I am working on material ui component library. I read the documentation and I saw there date picker responsive method.(see here).It mentioned we can responsive the date picker using desktopModeMediaQuery prop.I search every where in the documentation and didn't see how to use this prop and I didn't see any example as well. I looking for your great support. And I would like know that are there other ways of responsive the date picker in material ui. In here I used responsive word And It means when we change the width of the calendar picker, It should be responsive with the window screen.
Upvotes: 2
Views: 1447
Reputation: 497
Checkout the documentation ClickHere, I didnt workout,
By default, the DatePicker component renders the desktop version if the media query @media (pointer: fine) matches. This can be customized with the desktopModeMediaQuery prop.
desktopModeMediaQuery="@media (pointer: fine)"
Upvotes: 2