So in mui i want to select the multiple months like i can select from jan to july and there should be border display on selected months like in mui days selection.
<MonthCalendar
views={['month']}
disableFuture={disableFuture}
value={isArrowValue ? moment(arrowValue) : moment(value)}
minDate={moment(minDate)}
maxDate={moment(maxDate)}
onChange={handleDateChange}
disabled={disabled}
slots={{
monthButton: CustomMonthButton,
}}
slotProps={{
monthButton: {
// value: startDate,
// startDate: moment(months.startDate),
maxDate: moment(maxDate),
startDate: startDate,
endDate: endDate,
// handleMouseOut: handleMouseOut,
// handleMouseOver: handleMouseOver,
hoverEndDate: hoverEndDate,
variant: variant,
dayPickerClasses: dayPickerClasses,
},
}}
sx={
isArrowValue &&
moment(value).format('Y') !== moment(arrowValue).format('Y')
? classes.navMonthPicker
: classes.monthPicker
}
/>
this is code till now and CustomMonthButton is the component that render each months
So till now i pass this
monthButton: CustomMonthButton
and in this add button for each months but i want something in range.
am using mui/x-date-pickers ^7.22.2 and mui 5.16.7
i want same as mui date picker where i can select in range.