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

DateRangePicker

Updated: May 13, 2025
View on GitHub
The DateRangePicker component provides a standalone calendar interface for selecting date ranges. Unlike the DateRangeInput, this component is a pure calendar picker without input fields, making it ideal for embedding directly in forms or modals.
Prop
Type
Default
value
DateRange
onChange
(range: DateRange) => void
minDate
Date
maxDate
Date
dual
Show two months side by side.
boolean
size
lms
m
…and every FlexProps propinherited
className
string
style
React.CSSProperties
  • Dual calendar display: Shows two months side by side for easier date range selection
  • Range highlighting: Visual indication of the selected date range
  • Flexible sizing: Supports small, medium, and large size variants
  • Standalone component: Can be used independently without input fields
  • Customizable: Supports custom styling through className and style props
  • Keyboard navigation support for calendar interface
  • ARIA attributes for screen reader compatibility
  • Focus management for improved usability
Edit this page on GitHub
TrademarkTrademark
Built with curiosity by Lorant One and the Design Engineers Club