DateRangePicker
A component for selecting a date range.
Usage
Demonstration
Props
format
format
Type:
String
Default:
'MM/DD/YYYY'
Format for the displayed dates.
onChange
onChange
Type:
Function
:({start, end}: {start: Date, end: Date}) -> *
Default:
() => {}
This callback is called whenever the user selects clicks "Apply" after selecting a date.
startDate
startDate
Type:
Date
Default: none
Selected start date.
endDate
endDate
Type:
Date
Default: none
Selected end date.
Last updated