Skip to main content

Grid and Months

Outside Days

By default, DayPicker hides the days falling into other months. Use showOutsideDays to display them.

Prop NameTypeDescription
showOutsideDaysbooleanDisplay the days that fall outside the month
<DayPicker showOutsideDays />

Fixed Weeks

In a year, months can have between 4 and 6 weeks. Use the fixedWeeks prop to always display 6 weeks per month. This will prevent the grid from changing its height while navigating the calendar.

Prop NameTypeDescription
fixedWeeksbooleanAlways render 6 weeks to avoid layout shift.
<DayPicker fixedWeeks showWeekNumber />

Multiple Months

To display multiple months in the calendar, use the numberOfMonths prop.

Prop NameTypeDescription
numberOfMonthsnumberThe number of displayed months. Default is 1.
pagedNavigationbooleanPaginate the navigation.
reverseMonthsbooleanRender multiple months in reversed order.
<DayPicker numberOfMonths={2} />

Paged Navigation

With pagedNavigation, the navigation jumps by the specified number of months at a time.

Prop NameTypeDescription
pagedNavigationbooleanJump forward/backward by the number of displayed months at once.
<DayPicker numberOfMonths={2} pagedNavigation />