Components · Forms · Date Picker
Back to Date Picker typesDate Picker
Use for entering or selecting a single calendar date, like a date of birth, a booking date, or a deadline - visually a text field with a fixed trailing calendar icon.
Properties
Size, corner radius, label and placeholder are properties of the same component, not separate fields - change them below to check this field's style and states in the Live Preview.
Live Preview
Both types compared side by side, each in all 9 states - including Open, which shows the trigger's active-state styling (this system scopes to the trigger field itself; the calendar popover grid isn't modeled here). One full matrix is rendered per selected combination of Size and Corner radius - check more than one option in a dropdown to see every combination side by side.
When to use
Any form field that collects a single calendar date rather than free-form text.
Validation
Because the field accepts a typed date as well as a calendar pick, it needs to catch malformed and out-of-range dates that a picker-only field never sees.
- Required marking - mark the field required only when the date is mandatory to proceed, with the usual asterisk on the label, not a placeholder that disappears once the user starts typing.
- Validation timing - validate typed input on blur, not on every keystroke - checking as-you-type would flag an in-progress date like "12/2" as invalid before the user has finished typing it. A calendar selection is valid the moment it's clicked, since it can't produce a malformed value.
- Invalid date entry - reject a date that doesn't exist (e.g. "02/30/2026") or falls outside an allowed min/max range with a specific message - "February has only 28 days in 2026" or "Choose a date on or after 14 Mar 2026" - never a generic "Invalid date."
- Prevent, don't just catch - gray out and disable out-of-range dates in the calendar panel itself, so most invalid selections are avoided rather than caught only after the fact.
- Error message - show the message inline next to the field, and keep it specific enough that the user knows exactly what to change.
Component Guide
Overview
Date Picker is a text field with a fixed trailing calendar icon that opens a calendar panel for selecting a single date - it prevents free-form date typos and formatting inconsistencies by letting the user pick from an actual calendar instead of typing a date string by hand.
When to Use
- Collecting a single specific date - date of birth, a booking date, a deadline.
- Any date that benefits from calendar context - seeing the day of the week, nearby dates, or today's position.
- Filtering by a single date - "show records on this date".
When Not to Use
- A start and end date together as one pair - use Date Range instead of two separate Date Pickers.
- A time of day rather than a calendar date - use Time.
- A date the user would rather type freely in an unusual format - a plain Input may fit better for unconstrained historical or approximate dates.
Best Practices
- Show the selected date in the field using an unambiguous, locale-appropriate format (avoid all-numeric formats that can be misread as day/month vs. month/day).
- Default the calendar panel to open on today or on the currently selected date, not always the current month.
- Disable or visually de-emphasize out-of-range dates (past dates for a future booking, for example) rather than allowing an invalid selection to be corrected after the fact.
Do and Don't
Do
Weekdays only.
An unambiguous written-out month, so the date reads the same to a reader in London and one in Chicago.
Don't
All-numeric dates flip meaning between locales - 03/04 is two different days depending on where the reader is. Spell the month out.
Accessibility
- The calendar panel is reachable and fully operable by keyboard (arrow keys to move between days, Enter to select, Escape to close).
- The current, focused, and selected day are each visually and programmatically distinguishable, not just by color.
- The field's accessible name states what date is being collected (e.g. "Date of birth"), not just "Date".
Related Components
Date Range, Time, Calendar (the always-visible grid this component's panel is based on), Input.
{
"component": "Date Picker",
"category": "Forms",
"summary": "Date Picker is a text field with a fixed trailing calendar icon that opens a calendar panel for selecting a single date - it prevents free-form date typos and formatting inconsistencies by letting the user pick from an actual calendar instead of typing a date string by hand.",
"whenToUse": [
"Collecting a single specific date - date of birth, a booking date, a deadline.",
"Any date that benefits from calendar context - seeing the day of the week, nearby dates, or today's position.",
"Filtering by a single date - \"show records on this date\"."
],
"whenNotToUse": [
"A start and end date together as one pair - use Date Range instead of two separate Date Pickers.",
"A time of day rather than a calendar date - use Time.",
"A date the user would rather type freely in an unusual format - a plain Input may fit better for unconstrained historical or approximate dates."
],
"bestPractices": [
"Show the selected date in the field using an unambiguous, locale-appropriate format (avoid all-numeric formats that can be misread as day/month vs. month/day).",
"Default the calendar panel to open on today or on the currently selected date, not always the current month.",
"Disable or visually de-emphasize out-of-range dates (past dates for a future booking, for example) rather than allowing an invalid selection to be corrected after the fact."
],
"doAndDont": {
"do": "An unambiguous written-out month, so the date reads the same to a reader in London and one in Chicago.",
"dont": "All-numeric dates flip meaning between locales - 03/04 is two different days depending on where the reader is. Spell the month out."
},
"accessibility": [
"The calendar panel is reachable and fully operable by keyboard (arrow keys to move between days, Enter to select, Escape to close).",
"The current, focused, and selected day are each visually and programmatically distinguishable, not just by color.",
"The field's accessible name states what date is being collected (e.g. \"Date of birth\"), not just \"Date\"."
],
"relatedComponents": [
"Date Range",
"Time",
"Calendar",
"Input"
]
}