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
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
Props
CalendarView props
A month of events, like a wall calendar (Ant's Calendar in full mode).
| Prop | Type | Default | Description |
|---|---|---|---|
eventsrequired | CalendarEvent[] | - | The events: id, date (CalendarDate), title, optional tone. |
className | string | - | Extra class names for the root element. |
defaultMonth | CalendarDate | - | The month shown first. Default this month. |
maxPerDay | number | 3 | Events 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
| Key | Does |
|---|---|
| Tab | Moves to the month controls and events |
| Enter | Opens 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.