2.0 alpha
These docs describe 2.0. Install it with @once-ui-system/core@alpha.
On 1.8.x? Read the 1.x docs
TrademarkTrademarkDocs
Ctrl k
Search docs...
Form Controls

DateRangeInput

Updated: May 13, 2025
View on GitHub
The DateRangeInput component provides a user-friendly interface for selecting date ranges. It combines two input fields with a dropdown calendar interface, allowing users to easily select start and end dates.
Prop
Type
Default
idrequired
Ties the labels to the fields.
string
startLabelrequired
Label on the start field.
stringStart
endLabelrequired
Label on the end field.
stringEnd
value
The range, as start and end.
DateRange
onChange
Called with the new range.
(range: DateRange) => void
minHeight
Lower bound on the picker's height, in rem.
number
className
string
style
React.CSSProperties
…and every InputProps propinherited
  • Dual Input Fields: Separate fields for start and end dates
  • Calendar Interface: Visual calendar for intuitive date range selection
  • Formatted Display: Displays selected dates in a readable format
  • Custom Labels: Configurable labels for start and end date fields
  • Dropdown Integration: Uses DropdownWrapper for a clean UI experience
  • Clear visual indication of selected date range
  • Keyboard navigation support for calendar interface
  • Proper labeling for screen readers
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club