DateRangePicker
A component for selecting a date range.
Usage
Demonstration
![](https://legacy-docs.aragon.org/~gitbook/image?url=https%3A%2F%2F1303901111-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqkA65ZBta5cBbldyxyst%252Fuploads%252Fgit-blob-9fa7ab5c29fffab2d34c60ea7ed136bac24941f4%252FSchermata%25202022-06-25%2520alle%252022.54.46.png%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=a4e68fc5&sv=1)
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