Calendar | AIUI | Rokid

calendar displays a month or week and can parse iCalendar data into date annotations. The current component is display-only and does not expose date-selection events.

Calendar

calendar displays a month or week and can parse iCalendar data into date annotations. The current component is display-only and does not expose date-selection events.

Display a Month

<calendar value="2026-05-02" today="2026-05-01" locale="en-US" weekStart="monday"></calendar>

Display the Week Containing a Date

<calendar mode="week" displayDate="2026-05-02" locale="en-US"></calendar>

Annotate Scheduled Dates

<calendar value="2026-05-02" eventSource="{{calendarData}}"></calendar>

eventSource accepts raw iCalendar text to generate holiday, workday, and schedule annotations.

Properties

PropertyTypeDefaultDescription
modeStringmonthDisplay mode: month or week.
valueString-Selected date in ISO date format.
displayDateString-Visible anchor in ISO date format; falls back to value.
todayStringCurrent dateISO date treated as today.
localeStringenSupports zh, zh-CN, en, and en-US.
weekStartStringmondayFirst weekday; supports 0/sun/sunday and 1/mon/monday.
eventSourceString-Raw iCalendar text.