React Calendar Toolkit
Edit page
OverviewGetting startedDatepickerDatepicker attached to the inputChange visual theme
Customize UI
DayPropsWrap with custom CSS classHeaderInputModalWrapperMonthPopoverWrapperSelectorWeekDaysYear
Utilities

Day component displays specific date with day precision. onDateSet callback prop allows to set provided Date object as selected in Datepicker. Replace it with custom component.

Props

belongsToSameMonth
bool
required
isSelected
bool
required
isDisabled
bool
required
isHighlighted
bool
required
isWeekend
bool
required
onDateSet
func
required
date
Class(Date)
required
isCurrent
bool
required
name
{ "numeric": "number" }
required

Wrap with custom CSS class

You can override CSS classname of Day Calendar element, see dayCalendarClassName prop.

<Datepicker
onDateSet={date => {console.log('date set', date);}}
minPrecision="day"
dayCalendarClassName="your-custom-className"
title="Demo datepicker" />