Skip to content

MonthContent

A month on the calendar: a dot under each day that has something on, and one day’s events listed beside it. Days are local calendar days, "2026-10-14". The notch draws the grid; you keep which month is shown and which day is picked, and the grid’s own controls come back to onAction (MONTH): ‹ › and Today as previous, next and today, a day as day:2026-10-14, an event as event:<id>. Emit the month as it now is. At most MAX_MONTH_EVENTS events are kept.

optional counts?: Record<string, number>

How many events each day has, for the days on the grid with any.


optional datesOnly?: boolean

Only dates, no events: nothing listed beside the month.


optional events?: MonthEvent[]

The selected day’s events, in order.


optional firstWeekday?: number

The first day of the week, 1 Sunday … 7 Saturday.


month: string

The month shown, as its first day, "2026-10-01".


optional notice?: MonthNotice


optional selected?: string

The day whose events are listed; today when left out.


today: string

Today, so the grid rings it.