Date Range Picker
A start and an end date, each typed into its own segments, with a button that opens a range calendar in a popover.
Date range picker
BitBhDateRangePicker holds two BitBhDateRangePickerInputs — the start and the end, each a
date field of its own, a role="group" named "Start date" / "End date" and the field's label — the
BitBhDatePickerTrigger ("Choose date range") and the BitBhDatePickerContent popover, where
the BitBhCalendar picks ranges. Type a whole range in one go: the focus runs on from the start's year
into the end's month (and Backspace or ← back). In the calendar the first press sets one end and the
second the other, which closes the popover and returns the focus to the button; Escape drops a
half-picked range. @bind-Value is a BitBhDateRange?, set once both dates are in, in order.
Stay: none
Limits and unavailable dates
Min, Max, IsDateUnavailable and AllowsNonContiguousRanges go to
the calendar (unless it is given its own): booked nights are unavailable, and a range can't span them. A typed
range that breaks them — or an end before its start — is kept and marks the picker invalid (data-invalid,
aria-invalid on both dates).
The next six months; struck-through nights are booked.
Booking: none
In a German form
The picker joins EditForm validation through @bind-Value; BitBhErrorMessage
describes the group once invalid, and Name posts the range as an ISO interval
(2026-11-08/2026-11-12), as a range calendar does. The inputs and the button take German names
(aria-label), and with a German Culture the segments read dd.MM.yyyy.