On this page
@addTagHelper *, Webority.Ui.RazorPicking a day
The navigator is open on the page. A person moves between months and picks a day.
Keyboard
Tab reaches one day. Arrow keys move between days, Page Up and Page Down move between months, and Home and End go to the week's ends.
Markers and a clash
Tinted range
Week starts
Weeks start on Monday by default. Set first-day to start on Sunday.
Guidance
What to do, and what to avoid.
Use it when
- A page shows an open month navigator beside a list, with days that carry a busy or clash marker.
- The Agenda view's side column of the team calendar.
Reach for something else when
- A person picks a date from a field, in a popover. → AppDatePicker
- A full calendar of events. → AppCalendar
- A range picked by a person. → AppDateRangePicker
Put the reason for a marker in its label
The label is read with the date, so a marker that says only 'busy' tells a screen reader nothing.
A marker with only a tone and no label tells a screen reader nothing. A clash is a warning, never a block: show it and leave the day open.
Reference
Try every prop, read the full list, and check keyboard and screen reader behaviour.
8 props. The 5 most used come first.
Used on most screens 5 props
| Prop | Type | Default | Description |
|---|---|---|---|
| monthdefault the current month in IST | string | the current month in IST | The month shown, as yyyy-MM. |
| valuedefault - | DateOnly | - | The selected day, as yyyy-MM-dd. |
| range-startdefault - | DateOnly | - | The first day of the tinted range. |
| range-enddefault - | DateOnly | - | The last day of the tinted range. |
| markersdefault - | IEnumerable<AppMiniCalendarMarker> | - | Days that carry a marker. A warning tone is larger, for a clash; labels join in the day's accessible name. |
Less common 3 props
| Prop | Type | Default | Description |
|---|---|---|---|
| first-daydefault Monday | Monday | Sunday | Monday | The first day of the week. |
| labeldefault miniCalendar.label, Calendar | string | miniCalendar.label, Calendar | The accessible name of the navigator. |
| classdefault - | string | - | Classes for the root element. |
Screen reader
5 notes- Each day is a button whose accessible name is the full date, followed by the marker labels.
- The selected day is announced with aria-pressed, and today with aria-current.
- The previous and next month buttons are named from the shared date picker text.
- Arrow keys move between days, Page Up and Page Down move between months, and Home and End go to the start and end of the week row.
- One day is in the tab order: the selected day, else today, else the first day of the month.
Do and avoid
1 pairsPut the reason for a marker in its label
The label is read with the date, so a marker that says only 'busy' tells a screen reader nothing.
A marker with only a tone and no label tells a screen reader nothing. A clash is a warning, never a block: show it and leave the day open.