Inputs
Calendar
Bit.BlazorUI
BitCalendar is a fully-featured inline calendar for browsing and selecting a single date, or a date and time when the built-in time picker is enabled. It offers day, month and year grids, day events with details, and flexible day/week rules such as disabled and highlighted dates, a custom first day of week and week numbers. It works with any culture and time zone, including right-to-left and non-Gregorian calendars, and every grid follows the WAI-ARIA grid pattern for the keyboard.
Time, events & templates
The time picker with its steps and bounds, the day events and their details dialog, and the cell, header and footer templates.
Time picker
ShowTimePicker adds an hour and minute picker beside the day grid, or on top of it with
ShowTimePickerAsOverlay. TimeFormat switches between the 24-hour and 12-hour clocks,
ShowNowButton hides the button that jumps to the current time, and HourStep /
MinuteStep lay a grid over the day and the hour that everything the picker produces lands on -
the spin buttons, the arrow and page keys, and what is typed. A MinDate or MaxDate
carrying a time of day bounds the hours of the very day it falls on, so the picker cannot produce
an instant outside of them.
- The picker edits the time of the value. With no value it only holds a time - 00:00, or the time of StartingValue - which the next picked day takes; nothing is written until a day is picked. Seconds are always zero.
- Beside the day grid it takes the place of the month picker, which then opens from the month title instead. As an overlay it opens from a clock button in the header of the pickers (ShowTimePickerTitle) and closes with a button of its own (HideTimePickerTitle) or Escape.
- TimeFormat
TwelveHoursadds an AM/PM pair written with the designators of the Culture; the value itself is the same either way. - The now button sets the hour and minute to now (or to Today), kept inside the bounds of the day; it does not change the day.
- Steps below 1 count as 1, and the grids start at midnight and at the top of the hour. A bound that is off the grid is still reachable: a time pushed past a bound lands on the bound itself.
- Holding a spin button repeats it: after ContinuousSpinDelay (400 ms) and then every ContinuousSpinInterval (75 ms).
ShowTimePicker:
Selected date 11/28/2026
S
M
T
W
T
F
S
Selected: 11/28/2026 3:47:18 PM +01:00
TimeFormat = TwelveHours, without the now button:
S
M
T
W
T
F
S
ShowTimePickerAsOverlay (use the clock button):
November 2026
S
M
T
W
T
F
S
HourStep = 3, MinuteStep = 15:
S
M
T
W
T
F
S
MinDate / MaxDate with a time of day (from 09:30 today, until 17:00 in two days):
Selected date 11/28/2026
S
M
T
W
T
F
S
Selected: 11/28/2026 12:00:00 PM +01:00
Events
Events marks a day with one dot per event (up to three) and a tooltip, and clicking such a day
opens a modal dialog listing the title, time and description of each of them, all-day first. An event
can name its own Color; the rest take the calendar's. The dialog is dismissed with Escape or
its close button and hands the keyboard back to the day it came from. ShowEventDetails false
keeps the dots and the tooltip but leaves the day's events to the page, EventTemplate renders
an event's row in the dialog itself, and EventTimeFromText / EventTimeUntilText
localize the one-sided time rows.
- Each BitCalendarEvent has a
required Title, a Date, and optionally a Body, a Color, a
StartTime and an EndTime. Date is a
DateOnlymatched to the day as the calendar shows it, so the TimeZone never moves an event to another day. - An event without a StartTime counts as all-day. A row shows "09:00 – 17:00" with both times, "From 09:00" or "Until 17:00" with one, and no time with neither; the times follow the Culture and the TimeFormat. The dialog is headed by the date in the DateFormat.
- Clicking a day with events both selects it and opens the dialog, which is laid over the calendar and also closes on a click outside of it. Its close button is named by EventDetailsCloseButtonTitle.
- The tooltip and a screen reader's name for the day list every event, with its start time. The dialog reads the events again on every render, so events loaded while it is open show up in it.
- An EventTemplate replaces the title, time and body of a row, so it can hold the links or buttons the event leads to.
Events (click a marked day):
November 2026
S
M
T
W
T
F
S
Color per event:
November 2026
S
M
T
W
T
F
S
ShowEventDetails = false:
November 2026
S
M
T
W
T
F
S
Events of the selected day: -
EventTemplate:
November 2026
S
M
T
W
T
F
S
Opened: -
Templates
DayCellTemplate, MonthCellTemplate and YearCellTemplate replace the content of a
cell, while HeaderTemplate and FooterTemplate add markup of your own above and below
the pickers - a caption, a legend, or the actions a calendar is often given.
- A cell template replaces only what the cell shows. The cell stays the calendar's button, with its selected, today, disabled and highlighted states and its event dots, so the template is content inside a button: keep it free of links and buttons of its own.
- DayCellTemplate receives the day at midnight in the TimeZone. A screen reader still hears the full date and the events of the day, whatever the template shows.
- MonthCellTemplate receives the first day of the month in the year on screen; the cell is named by the text the template shows, with the full month name as its title. YearCellTemplate receives the year number.
- The year number is a year of the culture's calendar, but the
DayandMonthof aDateTimeOffsetare Gregorian: under a culture with another calendar, read them throughCulture.DateTimeFormat.Calendar. - HeaderTemplate and FooterTemplate sit inside the calendar's root, outside the pickers and the grids, and change nothing on their own: a footer button that sets the bound value, as below, is the usual way to add a Today or a Clear action.
DayCellTemplate:
November 2026
S
M
T
W
T
F
S
MonthCellTemplate & YearCellTemplate:
November 2026
S
M
T
W
T
F
S
HeaderTemplate & FooterTemplate:
Pick a delivery date
November 2026
S
M
T
W
T
F
S
Selected: -
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.