API Reference

MonthSeparatorState

interface

State exposed by the MonthSeparator component and its children.

Defined in package/src/month-separator.tsx:7

PropTypeDefaultDescription
month*numberCalendar month (1-12).
year*numberCalendar year.
firstOfYear*booleanTrue when this is the first month of a new year in the visible window.
firstVisible*booleanTrue for the separator at the top of the visible window.
weeksVisibleBefore*numberNumber of weeks of the previous month visible above this separator.
weeksVisibleAfter*numberNumber of weeks of this month visible below this separator.
firstDayColumn*number0-based column index where the 1st of the month falls within the week row. Accounts for week number column if present (column 0 = week number).
totalColumns*numberTotal number of columns (7 days + optional week number column).
firstDayVisible*booleanTrue when the 1st day of this month is visible in the weeks below.
fullWeeksVisibleAfter*numberNumber of week rows between this separator and the next separator (or end of window). Use this for CSS grid gridRow: span N to avoid overlapping the next month's label.
gridRowStart*number1-based grid row index where this separator's weeks start.