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

Standalone Calendar-component for DatePicker inside Drawer #891

Open
johnolos opened this issue Oct 13, 2023 · 4 comments
Open

Standalone Calendar-component for DatePicker inside Drawer #891

johnolos opened this issue Oct 13, 2023 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@johnolos
Copy link
Contributor

johnolos commented Oct 13, 2023

Is the feature you're requesting related to a challenge you're experiencing?

Hi, Team Personnel currently are using DatePicker inside a Drawer in a few scenarios. We would like a standalone Calendar to be used in such scenarios. I will share our offending abombinations so far as to highlight want we would like to archive.

Screenshot 2023-10-13 at 13 14 08

Screenshot 2023-10-13 at 13 14 14

How can we solve it?

Export a standalone component Calendar that we can use to interact and fill our DatePicker.

I believe the underlying framework have code examples of how this can be done:
https://react-spectrum.adobe.com/react-spectrum/Calendar.html#calendar

@johnolos johnolos added enhancement New feature or request help wanted Extra attention is needed labels Oct 13, 2023
@perweum
Copy link
Collaborator

perweum commented Oct 18, 2023

Possible solution using a static header with a scrollable calendar. Or just a static calendar without borders.

Screenshot 2023-10-18 at 13 45 24

Link to Figma-examples

@johnolos johnolos self-assigned this Feb 19, 2024
@johnolos johnolos removed their assignment Apr 17, 2024
@johnolos
Copy link
Contributor Author

First step is to make the Calendar a standalone component outside DatePicker-component. Just shipping this as a feature is valuable!

@perweum
Copy link
Collaborator

perweum commented Jun 24, 2024

It would be nice to move the functionality of the date-range to the standalone calendar component instead of being attached to the date-picker.

The example is taken from google travel which shows how we want the calendar to function.

Image

@HildeSHatt
Copy link

Would it be possible to write year in addition to clicking the arrows? When the component are used for date of birth some of us have to click too many times to reach our year... It would also be great if the arrows stays in the same position when selecting month.

Please see enclosed videoes of the above situations.

maned.mov
arstall.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants