Calendar
Month grids to pick a date, a range or several dates from — the WAI-ARIA date grid with one tab stop, full keyboard support, limits, unavailable dates and the reader's own calendar.
Single date
The grid is a <table role="grid"> named by the heading and one tab stop: ← / → move a day, ↑ / ↓ a
week, PageUp / PageDown a month (Shift: a year), Home / End to
the ends of the week, Enter or Space select. The cells are styled with Tailwind's
data-*: variants (data-today:, data-selected:, data-hover: …), the
week-day headers through the grid ([&_th]:).
November 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
Selected: Sunday, November 22, 2026
A range across two months
@bind-Range: the first press sets one end, the range follows the pointer and the focus until the
second press (data-highlighted:), Escape drops it. The ends get
data-selection-start: / data-selection-end:, the days between data-range-middle:.
Booked nights are unavailable and a range can't span them.
November – December 2026
November 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
December 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | 31 |
Stay: none
Limits, weekends and outside days
Dates outside Min / Max are disabled and not focusable (data-disabled:); weekends
are unavailable (data-unavailable:); ShowOutsideDays fills the first and last weeks
(data-outside-month:), hidden from assistive technology.
November 2026
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
Delivery: none
Cultures, calendars and right to left
Culture sets the names, the first day of the week and the calendar: the German week starts on Monday;
the Persian culture shows the Persian calendar's months, right to left, with ← / → mirrored. (This WebAssembly demo
runs without ICU, where the Persian calendar isn't available.)
November 2026
| M | D | M | D | F | S | S |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Value: 2026-11-22
Several dates
@bind-Values selects any number of dates; each press toggles one. A cell's Template receives
the day's state.
November 2026
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 |
Shifts: none
In a form
In a BitBhField the calendar is labelled by BitBhLabel, described by
BitBhDescription and BitBhErrorMessage, and validated by EditForm.