Pickers
DatePicker
Bit.BlazorUIMonthPickerYearPickerDateTimePicker
A BitDatePicker picks a date, or a date and time, from a drop-down or inline calendar with day, month and year views. It supports min/max, disabled and highlighted dates, typed input, any culture, calendar and time zone, and the WAI-ARIA combobox and grid keyboard patterns.
Modes & templates
An inline calendar, month and year pickers, read-only pickers, templates and the full-width panel of small screens.
Standalone
Standalone renders the calendar inline, without the input and callout. It still takes part in
an EditForm through a hidden input.
Use it where the calendar is the content itself - a booking page, a sidebar, a dialog of its own. The hidden input carries the value (and the Name) for the form and is kept out of the tab order; the calendar is what is browsed with the keyboard - a group named by CalloutAriaLabel and described by the Description and the validation messages, which render below it. Everything about the field and the callout does nothing here: IsOpen, OpenCallout, AutoClose, AutoFocus, Responsive, ShowCloseButton, DropDirection, AllowTextInput and the field's icon and clear button. MonthCount is not cut back for a narrow viewport, since the room the calendar has is the page's to give.
Use it where the calendar is the content itself - a booking page, a sidebar, a dialog of its own. The hidden input carries the value (and the Name) for the form and is kept out of the tab order; the calendar is what is browsed with the keyboard - a group named by CalloutAriaLabel and described by the Description and the validation messages, which render below it. Everything about the field and the callout does nothing here: IsOpen, OpenCallout, AutoClose, AutoFocus, Responsive, ShowCloseButton, DropDirection, AllowTextInput and the field's icon and clear button. MonthCount is not cut back for a narrow viewport, since the room the calendar has is the page's to give.
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
#
S
M
T
W
T
F
S
44
45
46
47
48
Mode
Mode picks a month (MonthPicker) or a year (YearPicker) instead of a day: the input
shows just that, and the value is its first day the Min/Max range and the day rules allow.
Use it for a billing month, a card expiry or a year of birth. The value is still a full
Use it for a billing month, a card expiry or a year of birth. The value is still a full
DateTimeOffset: read its year (and month) and ignore the day. The field writes the
culture's year-month pattern (MonthPicker) or yyyy (YearPicker) unless DateFormat
says otherwise, and a typed month or year lands on the same first allowed day. A month or year with no
allowed day at all is disabled. The time picker, ShowMonthPicker and
ShowMonthPickerAsOverlay do nothing in these modes, and HighlightCurrentMonth /
HighlightSelectedMonth work as they do in the month pane.
Selected date: None
2025 - 2036
Selected date: None
2025 - 2036
ReadOnly
ReadOnly shows the value and lets the calendar be browsed, but nothing can change it - not the
days, the time, the clear button or typing.
Choose it over Disabled when the value should stay readable, focusable and explorable (a submitted form, a record the person may not edit): a disabled picker cannot be focused or opened at all. Read-only, the callout still opens and the months and years can be navigated, but the days are marked
Choose it over Disabled when the value should stay readable, focusable and explorable (a submitted form, a record the person may not edit): a disabled picker cannot be focused or opened at all. Read-only, the callout still opens and the months and years can be navigated, but the days are marked
aria-readonly, the time and now
buttons are marked disabled, none of them changes anything, the clear button is disabled, and the
field cannot be typed into even with AllowTextInput - so it also opens like a field without it,
moving the focus into the calendar. The value is still submitted with the form.
Selected date 11/28/2026
November 2026
S
M
T
W
T
F
S
Expected format: M/d/yyyy
Selected date 11/28/2026
November 2026
S
M
T
W
T
F
S
Selected date 11/28/2026
November 2026
S
M
T
W
T
F
S
Selected date 11/28/2026 15:47
S
M
T
W
T
F
S
Templates
LabelTemplate, IconTemplate, DayCellTemplate, MonthCellTemplate and
YearCellTemplate replace their parts; CalloutHeaderTemplate and
CalloutFooterTemplate add content around the calendar, such as preset buttons.
- DayCellTemplate gets the day as a
DateTimeOffset(midnight, in the picker's TimeZone), MonthCellTemplate the first day of the month, and YearCellTemplate the year as anint. With a non-Gregorian Culture the year is the culture's, and the day and month dates are Gregorian - read their month and year throughCulture.DateTimeFormat.Calendar. - A cell template replaces only what is inside the cell's button: selecting, disabling, the keyboard and the accessible name (the full date) keep working.
- LabelTemplate replaces Label and is still the input's label; IconTemplate replaces the calendar icon of the field, without the icon's styles.
- The header and footer stay inside the callout's focus trap, so their buttons are reachable with Tab. A preset button sets the bound value and can close the callout with CloseCalloutAndFocus, as the last picker does.
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
Pick your appointment
November 2026
S
M
T
W
T
F
S
Responsive
Responsive turns the callout into a full-width panel on small screens that slides in from the
top and closes with a swipe. Resize the window to try it.
The panel takes over below 600px of viewport width; wider, the picker is an ordinary callout under its field. Swiping the panel up dismisses it like a click outside it would, and the keyboard, the focus trap and Esc work as they do in the callout. It has no effect on a Standalone picker, which has no callout. Without Responsive, a narrow screen still gets a usable calendar: the extra months of MonthCount are dropped and the month and time pickers turn into overlays.
The panel takes over below 600px of viewport width; wider, the picker is an ordinary callout under its field. Swiping the panel up dismisses it like a click outside it would, and the keyboard, the focus trap and Esc work as they do in the callout. It has no effect on a Standalone picker, which has no callout. Without Responsive, a narrow screen still gets a usable calendar: the extra months of MonthCount are dropped and the month and time pickers turn into overlays.
November 2026
#
S
M
T
W
T
F
S
44
45
46
47
48
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.