feat(Calendar): add month/year picker modes and view switching#5981
feat(Calendar): add month/year picker modes and view switching#5981
Conversation
d181f50 to
28da0df
Compare
|
@benjamincanac what do you think about this PR? Do you like the API? There are some styles I would like to improve and nail down. But I think is mostly ready :) Let me know your thoughts! Thank you! Once we decide to move forward I will ammend PR fixing CI and fixing UI issues |
|
Thanks for the PR! I do like the API with the However, it adds lots of code since there are no primitives for this in Reka UI. @J-Michalek what do you think about this? Are you aware of such thing being added in Reka UI any time soon? |
|
Well there is an issue open for 8 months unovue/reka-ui#1933 and the activity in the repo is mild at best, but I think we should rely on RekaUI to provide these inputs... Perhaps the author of this PR would be interested in implementing in RekaUI? |
|
I’m the author of the feature request in Reka UI (unovue/reka-ui#1933), and it has already gathered meaningful community interest (19+ reactions). As mentioned above, this PR adds a fair amount of code mainly because Reka UI doesn’t provide primitives for month/year picking yet. @onmax, if you’re open to it, migrating this PR to add |
|
Thanks for the feedback. I will prepare a PR for Reka UI. @benjamincanac, should I keep the behaviour shown in the video? I am not 100% this is the best ux 🤔 |
|
I think I like it yes, it avoids having to implement popover and lets us render a Calendar only for months at the same time as selecting a month for a normal calendar. |
|
Ok, i won't bother you again 😬, once reka ui is released and this pr is ready I will mark this pr ready and i will ping you. Feel free to post any feedback though. Most of the code is ready. I am just testing it throughly :) |
28b4540 to
4d64993
Compare
4d64993 to
ae0edf7
Compare
commit: |
|
Great to see work on this! I've long missed it since version 2. Just my 2c. I think a 3x4 grid looks neater as was used in v2: https://ui2.nuxt.com/components/date-picker#datepicker |

🔗 Linked issue
Resolves #4889
❓ Type of change
📚 Description
typeproptypepropChanges:
typeprop (date|month|year) for standalone pickersview/defaultViewprops for view state controltype="date"monthGrid,monthCell,yearGrid,yearCellmonth-cell,year-cellfor custom rendering📸 Screenshots
type="month")type="year")Cap.2026-02-04.at.14.31.40.mp4
📝 Checklist