Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create year range #839

Merged
merged 7 commits into from
Apr 10, 2024
Merged

Conversation

epr3
Copy link
Collaborator

@epr3 epr3 commented Apr 10, 2024

Hello,

This PR removes redundant slot prop functions from the Calendar components which are now exposed through radix-vue/date and useDateFormatter respectively, namely getYears, getMonths and formatter, plus some minor fixes to the code and stories which were using the slot props.

Also, it adds a new function to radix-vue/date: createYearRange which returns a year range between a start year and a end year.

cc @sadeghbarati for the createYearRange function suggestion

@zernonia zernonia merged commit 21666d0 into radix-vue:main Apr 10, 2024
2 of 3 checks passed
@epr3 epr3 deleted the feat-create-year-range branch April 10, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants