API Reference

MonthViewRootProps

interface

Props accepted by MonthView.Root.

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

PropTypeDefaultDescription
numberOfMonthsnumber1Number of months to display simultaneously (1–12).
fixedWeeksbooleanfalseWhen true, always render 6 week rows per month grid. Prevents layout shifts when navigating between months.
outsideDaysOutsideDays"enabled"Controls how days from adjacent months are displayed.
overflowBehaviorMonthOverflowBehavior"unbounded"How month navigation behaves at min/max bounds. - "unbounded" — navigation is always allowed. - "stop" — navigation buttons disable at the boundary.
monthPlainYearMonthThe controlled visible month. When provided, the component is controlled.
defaultMonthPlainYearMonthThe initial visible month (uncontrolled).
onMonthChange(month: PlainYearMonth) => voidCalled when the visible month changes via navigation or focus movement. Not called on initial mount.
childrenReact.ReactNodeReact children.