Replies: 1 comment
-
Hi @kkh975 import { DayPicker, defaultDateLib } from "react-day-picker";
<DayPicker
defaultMonth={defaultDateLib.addMonths(new Date(), -1)}
/> This will show the first month of the calendar as the month before the current one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am using the 'numberOfMonths' option.


If numberOfMonths is 3, Currently, it is as below.
If numberOfMonths is 2, Currently, it is as below.
When the current month is February 2025,

If numberOfMonths is 3, I would like to place the current moon in the middle.
If numberOfMonths is 2, I would like to place the current moon on the right side.

I have to use the 'month' and 'onMonthChange' options rather than 'defaultMonth' option.
I'm wondering how I can customize the current month position.
Beta Was this translation helpful? Give feedback.
All reactions