mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.16k stars 1.3k forks source link

[pickers] Allow to customize the size / density of the views #12676

Open kovryzhenko opened 6 months ago

kovryzhenko commented 6 months ago

Summary

add Size prop or something to your DateRangeCalendar component (and to others similar) FFS.

Examples

wanna change size thats all.

Motivation

wanna change size thats all.

Search keywords: calendar, size

Search keywords:

michelengelen commented 6 months ago

Hey @ridl27 I will add this to our board. Thanks for raising this feature request! 🙇🏼

flaviendelangle commented 6 months ago

Not sure to understand what "size" would do here. Does it impact the size of the input? Does it change the spacings in the calendar?

kovryzhenko commented 6 months ago

Not sure to understand what "size" would do here. Does it impact the size of the input? Does it change the spacings in the calendar?

It should change not only spacings but also width, height, font-size and other styles. So we could adjust the "size" of the DateRangeCalendar component. Call this prop as you want, just gimme possibility to make it bigger :D

flaviendelangle commented 6 months ago

In this case it's the point 6 of #7440 but in the reverse direction I think we can keep this issue as the main source of truth for configurable density / size on the picker views.

kovryzhenko commented 6 months ago

In this case it's the point 6 of #7440 but in the reverse direction I think we can keep this issue as the main source of truth for configurable density / size on the picker views.

basically, we need these components to be adaptive. ok. thank you.