You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2025. It is now read-only.
locale | object | enUS from locale | you can view full list from [here](https://github.com/Adphorus/react-date-range/tree/next/src/locale/index.js). Locales directly exported from [`date-fns/locales`](https://date-fns.org/v2.0.0-alpha.7/docs/I18n#supported-languages).
89
+
className | String | | wrapper classname
90
+
months | Number | 1 | rendered month count
91
+
showSelectionPreview | Boolean | true | show preview on focused/hovered dates
92
+
previewColor | String | | defines color for selection preview
93
+
shownDate | Date | | initial focus date
94
+
specialDays | Date[] | [] | defines special days
95
+
onPreviewChange | Func | | callback for preview changes. fn()
maxDate | Date | | defines maximum date. Disabled later dates
98
+
showMonthArrow | Boolean | true |
99
+
ranges(Calendar) | *Object[] | [] |
100
+
onChange(Calendar) | Func | | callback function for date changes. fn(date: Date)
101
+
color(Calendar) | String | `#3d91ff` | defines color for selected date in Calendar
102
+
date(Calendar) | Date | | date value for Calendar
103
+
onChange(DateRange) | Func | | callback function for range changes. fn(changes). changes contains `startDate` and `endDate` under an object key of changed range
104
+
moveRangeOnFirstSelection(DateRange) | Boolean | false | move range on startDate selection. Otherwise endDate will replace with startDate.
0 commit comments