Skip to content

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.

Styled with CSS Tailwind

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

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930

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

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930
SMTWTFS
12345
6789101112
13141516171819
20212223242526
2728293031

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

SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
2930

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

MDMDFSS
1
2345678
9101112131415
16171819202122
23242526272829
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

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930

Shifts: none

In a form

In a BitBhField the calendar is labelled by BitBhLabel, described by BitBhDescription and BitBhErrorMessage, and validated by EditForm.

November 2026

SMTWTFS
1234567
891011121314
15161718192021
22232425262728
2930

Check-in is from 3 pm.

An unhandled error has occurred. Reload 🗙