API Reference

MonthViewRootProps

interface

Props accepted by MonthView.Root.

Defined in package/src/month-view-types.ts:10

PropTypeDefaultDescription
numberOfMonthsnumber | undefined1Number of months to display simultaneously (1–12).
fixedWeeksboolean | undefinedfalseWhen true, always render 6 week rows per month grid. Prevents layout shifts when navigating between months.
outsideDaysOutsideDays | undefined"enabled"Controls how days from adjacent months are displayed.
overflowBehaviorMonthOverflowBehavior | undefined"unbounded"How month navigation behaves at min/max bounds. - "unbounded" — navigation is always allowed. - "stop" — navigation buttons disable at the boundary.
monthPlainYearMonth | undefinedThe controlled visible month. When provided, the component is controlled. Interpreted in the ISO calendar (the year/month are read as ISO values). The locale only affects how the month is displayed, so this value round-trips directly with onMonthChange.
defaultMonthPlainYearMonth | undefinedThe initial visible month (uncontrolled). Interpreted in the ISO calendar.
onMonthChange((month: PlainYearMonth) => void) | undefinedCalled when the visible month changes via navigation or focus movement. Not called on initial mount. The argument is an ISO PlainYearMonth.
childrenReact.ReactNodeReact children.