Overview
April 2026
For date range selection, use
DateRangePicker. Both components share the same API shape — DateRangePicker accepts { from: Date; to?: Date } for its value prop.Installation
Usage
Variants
Single Date (Default)
The default trigger opens a calendar popover for single date selection.With Selected Value
Date Range Picker
Error State
Disabled
API Reference
DatePicker
DateRangePicker
Same props asDatePicker, except:
Callback fired when the selected range changes.
Accessibility
- The trigger renders as a
<button>witharia-haspopup="dialog"andaria-expanded - The calendar popover uses
role="dialog"witharia-modal="true" - Individual day cells use
role="gridcell"witharia-selectedandaria-disabled - Keyboard navigation: Arrow keys move focus between days, Enter/Space selects, Escape closes the popover
- The calendar
<table>hasrole="grid"with column headers labeled by weekday abbreviation
Do’s & Don’ts
Do
- Use
minDateandmaxDateto constrain valid selections - Show the selected date in a human-readable format (
"April 1, 2026", not"2026-04-01") - Provide a
helperTextwith error state to explain what went wrong - Use
DateRangePickerfor date range inputs — never two separate DatePickers
Don't
- Don’t use DatePicker for time-only selection — use a time input
- Don’t disable today’s date unless there’s a valid business reason
- Don’t rely solely on the calendar for date entry — allow manual text input where possible
- Don’t use DatePicker inline in dense form rows — it opens a popover that needs space