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

Component: Date input #188

Open
Yolijn opened this issue May 8, 2023 · 0 comments
Open

Component: Date input #188

Yolijn opened this issue May 8, 2023 · 0 comments

Comments

@Yolijn
Copy link
Member

Yolijn commented May 8, 2023

GOV.UK seems to believe an input-group is the way to go for exact dates without a calendar dropdown. They do not use the <input type="date"/> at all.

We need to investigate if a date input is a component we should offer or if it is a pattern including specific autocomplete and validation instead. (Birthday, issue-date of a credit-card, expiry of a passport, etc.)

Use when

Date Input is used when any date can be selected and a calendar should be shown to pick one

Don't use when

picking a date from a calendar with availability. Use the Date Picker #35 instead

Reference

Naming

Most used seems to be Date Picker, https://www.uiguideline.com/components/date-picker, but we'll use that name for the one with availability. To keep in line with other input type="x" we will name this component DateInput

@Yolijn Yolijn added the more info needed Further information is requested label May 8, 2023
@Yolijn Yolijn added component and removed more info needed Further information is requested labels Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: No status
Status: No status
Status: No status
Development

No branches or pull requests

1 participant