Open Janpot opened 1 year ago
We have a couple of apps to support MUI's operations that depend on a date range picker:
One thing that we very frequently use is presets: *last month in our case. Presets would be the primary value for me.
One thing that we very frequently use is presets: *last month in our case. Presets would be the primary value for me.
Would this make sense as an MUI X feature?
Would this make sense as an MUI X feature?
Interesting question, I assume you couldn't find it on the docs. Then a few ideas for @flaviendelangle
I have tried to search the feature with "preset". People coming Ant Design https://ant.design/components/date-picker#components-date-picker-demo-preset-ranges would be used to it. It's also used in https://vercel.com/design/calendar#presets. I couldn't find a match on Algolia. Maybe we should place this keyword to have a match with https://mui.com/x/react-date-pickers/shortcuts/.
The spacing could feel better https://codesandbox.io/s/fervent-stallman-k362g6?file=/Demo.tsx
Current
Proposed:
Task created for it https://www.notion.so/mui-org/Date-Picker-preset-polish-c48165a4dac74c3facb989218d4711b3.
I assume you couldn't find it on the docs
I didn't look for it, I interpreted your comment as requesting this as a specific feature for Toolpad. I wasn't aware this was already a feature in X. 👍 we should add it in the Toolpad implementation.
Summary 💡
Toolpad should support the Date Range Picker component.
Benchmarks
Motivation 🔦
Was missing this on https://github.com/mui/mui-toolpad/pull/2151.