Components · Forms · Date Range
Back to Date Range typesDate Range
Use for picking a start and end date together as one pair, like trip dates or a reporting period, instead of two separate date fields - visually a text field showing both dates with a fixed trailing calendar icon.
Properties
Size, corner radius, label and placeholders 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. 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 start and end date together as one bounded pair rather than two independent dates.
Validation
Two connected dates mean two layers of validation - each end's own date has to be valid, and the pair has to be validated together for order.
- Required marking - mark the field required when the range as a whole is mandatory; state on the label or nearby copy whether both ends or just the start are required, since "required" is ambiguous on a two-part field.
- Validation timing - validate each end's own date validity on blur, but only check the start-before-end relationship once both ends have a value. Checking it right after the start is filled would incorrectly flag an incomplete range as an error.
- Invalid date entry - a malformed or out-of-range date in either field is rejected with the same specific messaging as Date Picker (e.g. "February has only 28 days in 2026"), scoped to whichever end produced it.
- Range order - if the end date lands before the start date, show "End date must be on or after the start date." Prevent most of these outright by disabling dates before the start in the end-date calendar once a start is chosen, or auto-adjusting the other end.
- Error message - show the message inline, next to whichever segment (start or end) it applies to, so the user isn't left guessing which half of the range is wrong.
Component Guide
Overview
Date Range collects a start and end date together as one bounded pair in a single field - a text field showing both dates with a fixed trailing calendar icon - used whenever the two dates are meaningless apart, like a trip's start and end.
When to Use
- Trip or booking dates - start and end, considered together.
- A reporting period or subscription term - a bounded window with a clear start and end.
- An event's duration - where showing just one date without the other would be incomplete.
When Not to Use
- Two genuinely independent dates - use two separate Date Pickers if the dates don't form one bounded range.
- A single date with no end boundary - use Date Picker.
- A numeric range rather than a date range - use Slider or two Number fields.
Best Practices
- Show both dates together in the field so the pair reads as one value, not two.
- Prevent selecting an end date before the start date directly in the calendar UI, rather than only validating after submission.
- Highlight the in-between days in the calendar panel while the user is choosing the range, so the selection reads clearly before it's confirmed.
Do and Don't
Do
One control holding both ends, so the pair is obviously a range and cannot be filled in the wrong order.
Don't
End date is before start date.
Two independent Date Pickers let the user build an impossible range and only find out when they submit.
Accessibility
- Announces which end of the range (start or end) is currently being selected as the user moves through the calendar.
- Fully keyboard-operable, matching Date Picker's arrow-key and Enter/Escape behavior, extended across two linked selections.
- The field's accessible name or nearby label clarifies that a range, not a single date, is being collected.
Related Components
Date Picker, Calendar, Time.
{
"component": "Date Range",
"category": "Forms",
"summary": "Date Range collects a start and end date together as one bounded pair in a single field - a text field showing both dates with a fixed trailing calendar icon - used whenever the two dates are meaningless apart, like a trip's start and end.",
"whenToUse": [
"Trip or booking dates - start and end, considered together.",
"A reporting period or subscription term - a bounded window with a clear start and end.",
"An event's duration - where showing just one date without the other would be incomplete."
],
"whenNotToUse": [
"Two genuinely independent dates - use two separate Date Pickers if the dates don't form one bounded range.",
"A single date with no end boundary - use Date Picker.",
"A numeric range rather than a date range - use Slider or two Number fields."
],
"bestPractices": [
"Show both dates together in the field so the pair reads as one value, not two.",
"Prevent selecting an end date before the start date directly in the calendar UI, rather than only validating after submission.",
"Highlight the in-between days in the calendar panel while the user is choosing the range, so the selection reads clearly before it's confirmed."
],
"doAndDont": {
"do": "One control holding both ends, so the pair is obviously a range and cannot be filled in the wrong order.",
"dont": "Two independent Date Pickers let the user build an impossible range and only find out when they submit."
},
"accessibility": [
"Announces which end of the range (start or end) is currently being selected as the user moves through the calendar.",
"Fully keyboard-operable, matching Date Picker's arrow-key and Enter/Escape behavior, extended across two linked selections.",
"The field's accessible name or nearby label clarifies that a range, not a single date, is being collected."
],
"relatedComponents": [
"Date Picker",
"Calendar",
"Time"
]
}