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

Able to choose year and month in DatePicker and DateRangePicker component. #1005

Open
eonwy opened this issue Dec 16, 2024 · 0 comments
Open
Labels
feature request New feature request

Comments

@eonwy
Copy link

eonwy commented Dec 16, 2024

Describe the feature in detail (code, mocks, or screenshots encouraged)

In the bits-ui DatePicker and DateRangePicker components, there's currently no way to select specific years and months.
This makes it inconvenient for users who need to choose dates far from the current date. So could we add a feature to customize year and month selection?
If I could I'd like to implement this by making the <DatePicker.Heading /> clickable.
When clicked, it should display a collection of years
image
like this.
After selecting a year, it should then show a collection of months
image
like this.

PS. The component design doesn't need to match my example exactly. I just need functionality that allows users to select both year and month. And also I got those images by https://air-datepicker.com/

I'll be happy to implement this feature, but first I'd like to get your feedback.

@huntabyte huntabyte added the feature request New feature request label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature request
Projects
None yet
Development

No branches or pull requests

2 participants