Skip to content
Alea0.1

Data display

CalendarView

A month of events, like a wall calendar.

Ant Design: Calendar

import { CalendarView, parseDate } from '@alea/ui';

Examples

CalendarView

Events by day; press one, or a day to add.

October 2026

October 2026
SunMonTueWedThuFriSat

                                                                Props

                                                                CalendarView props

                                                                A month of events, like a wall calendar (Ant's Calendar in full mode).

                                                                PropTypeDefaultDescription
                                                                eventsrequiredCalendarEvent[]-The events: id, date (CalendarDate), title, optional tone.
                                                                classNamestring-Extra class names for the root element.
                                                                defaultMonthCalendarDate-The month shown first. Default this month.
                                                                maxPerDaynumber3Events shown per day before "+n more". Default 3.
                                                                onDayPress((date: CalendarDate) => void)-Called when a day is pressed (to add an event).
                                                                onEventPress((event: CalendarEvent) => void)-Called when an event is pressed.

                                                                Accessibility

                                                                • A table with day names; days and events are buttons with full dates in their names.

                                                                Keyboard

                                                                KeyDoes
                                                                TabMoves to the month controls and events
                                                                EnterOpens an event

                                                                Do and don't

                                                                Do

                                                                • Use tones only for meaning (warning for deadlines).
                                                                • Link each event to its details.

                                                                Don't

                                                                • Don't put more than three events in a day cell: show +N more.
                                                                • Don't use it to pick a date: use DatePicker.
                                                                Tested with axe, keyboard and screen reader roles