General datepicker component.
name | type | default value | description |
---|---|---|---|
allowSameDay |
bool |
false |
|
autoComplete |
string |
||
autoFocus |
bool |
||
calendarClassName |
string |
||
children |
node |
||
className |
string |
||
customInput |
element |
||
dateFormat |
union(string|array) |
'L' |
|
dateFormatCalendar |
string |
'MMMM YYYY' |
|
dayClassName |
func |
||
disabled |
bool |
false |
|
disabledKeyboardNavigation |
bool |
false |
|
dropdownMode (required) |
enum('scroll'|'select') |
'scroll' |
|
endDate |
object |
||
excludeDates |
array |
||
filterDate |
func |
||
fixedHeight |
bool |
||
forceShowMonthNavigation |
bool |
||
highlightDates |
array |
||
id |
string |
||
includeDates |
array |
||
inline |
bool |
||
isClearable |
bool |
||
locale |
string |
||
maxDate |
object |
||
minDate |
object |
||
monthsShown |
number |
1 |
|
name |
string |
||
onBlur |
func |
function() {} |
|
onChange (required) |
func |
function() {} |
|
onChangeRaw |
func |
||
onClickOutside |
func |
function() {} |
|
onFocus |
func |
function() {} |
|
onMonthChange |
func |
function() {} |
|
onSelect |
func |
function() {} |
|
openToDate |
object |
||
peekNextMonth |
bool |
||
placeholderText |
string |
||
popperClassName |
string |
||
popperModifiers |
object |
||
popperPlacement |
enumpopperPlacementPositions |
||
readOnly |
bool |
||
required |
bool |
||
scrollableYearDropdown |
bool |
||
selected |
object |
||
selectsEnd |
bool |
||
selectsStart |
bool |
||
showMonthDropdown |
bool |
||
showWeekNumbers |
bool |
||
showYearDropdown |
bool |
||
startDate |
object |
||
tabIndex |
number |
||
title |
string |
||
todayButton |
string |
||
utcOffset |
number |
moment().utcOffset() |
|
value |
string |
||
withPortal |
bool |
false |