Pickers
DateRangePicker
Bit.BlazorUIDateTimeRangePicker
A BitDateRangePicker is a drop-down calendar for picking a start and an end date, where context such as the day of the week matters. It offers one-click presets, up to three months side by side, range limits and disabled days, an optional time picker, an optional Apply/Cancel step, an inline mode, full keyboard support and any culture or time zone.
Styling
Cascading parameters, colors, icons, sizes, Style & Class and right-to-left pickers.
Cascading parameters
BitParams hands a BitDateRangePickerParams to every picker below it, so shared settings (culture,
bounds, presets, look) are written once. They are defaults, not overrides: a parameter a picker sets itself
keeps its own value.
BitDateRangePickerParams carries the picker's parameters as nullable properties, and only the ones given a value are handed down, so a picker opts out of one by setting it itself - as the third picker does with
BitDateRangePickerParams carries the picker's parameters as nullable properties, and only the ones given a value are handed down, so a picker opts out of one by setting it itself - as the third picker does with
MonthCount="1" and an empty Presets array. Use it for app-wide conventions: a
culture or time zone, the first day of the week, a booking window, the translated button titles and aria
labels. Put the BitParams around a layout or a form to reach every picker inside it; pickers outside
it are untouched.
November 2026
M
T
W
T
F
S
S
December 2026
M
T
W
T
F
S
S
November 2026
M
T
W
T
F
S
S
December 2026
M
T
W
T
F
S
S
November 2026
M
T
W
T
F
S
S
Outside the cascade:
November 2026
S
M
T
W
T
F
S
Color
Color sets the accent: today, the range and its ends, the selected preset, the highlighted current month, the active AM/PM
button, the Apply button, the open field and every focus ring.
Left unset, the picker is
Left unset, the picker is
Primary unless the --bit-DateRangePicker-* color
variables say otherwise; an explicit Color wins over those variables (see
Style & Class). The callout takes the color with it. Errors keep
their own error color whatever Color says.
:
:
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
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
External Icons
Use icons from external libraries like FontAwesome, Material Icons, and Bootstrap Icons with the Icon parameter.
Icon takes a BitIconInfo: a plain string of CSS classes,
Icon takes a BitIconInfo: a plain string of CSS classes,
BitIconInfo.Css(...), or
the BitIconInfo.Fa(...) / BitIconInfo.Bi(...) shorthands. It wins over
IconName, which only names an icon of the built-in set. Every other icon of the picker has the same
pair - the navigation arrows (PrevMonthNavIcon, NextYearNavIcon, PrevYearRangeNavIcon,
...), GoToTodayIcon, ClearButtonIcon, CloseButtonIcon, the time picker's toggle
(ShowTimePickerIcon/HideTimePickerIcon) and its eight spin buttons - each with an
…IconName twin. The picker only writes the classes: the app loads the icon library's stylesheet
itself, as this section does with a <link>. For markup of your own in place of the field's
icon, use IconTemplate.
FontAwesome:
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
Bootstrap:
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
Navigation & ClearButton Icons (FontAwesome):
November 2026
S
M
T
W
T
F
S
S
M
T
W
T
F
S
:
:
Navigation Icons (Bootstrap):
November 2026
S
M
T
W
T
F
S
Size
Size scales the field, the label and the calendar cells together in one of three steps. The callout
takes the size with it, so a small picker opens a small calendar.
Left unset, the picker is
Left unset, the picker is
Medium unless the --bit-DateRangePicker-* size variables
(input height and font size, label font size, day size and font size) say otherwise; an explicit Size
wins over them. A larger calendar needs more width, so a Large picker folds its month and time
pickers behind toggles, and drops extra months, on a wider viewport than a Small one 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
44
45
46
47
48
November 2026
S
M
T
W
T
F
S
Style & Class
Style and Class reach the root; Styles and Classes reach every part (field,
callout, grids, time picker buttons).
The callout is not inside the root: it is rendered beside it, and moved into the document's body while open, so a rule written for the root's class does not reach the calendar - use Classes.Callout and the parts inside it. Focused applies while the field has the focus; StartDayButton, EndDayButton and StartAndEndSelectionDays style the two ends, SelectedDayButtons the days between them and HoveredDayButtons the preview while the end is still to be picked. Every part is listed in the BitDateRangePickerClassStyles table of the API topic. The CSS variables, shown at the end of this section, restyle every picker at once.
The callout is not inside the root: it is rendered beside it, and moved into the document's body while open, so a rule written for the root's class does not reach the calendar - use Classes.Callout and the parts inside it. Focused applies while the field has the focus; StartDayButton, EndDayButton and StartAndEndSelectionDays style the two ends, SelectedDayButtons the days between them and HoveredDayButtons the preview while the end is still to be picked. Every part is listed in the BitDateRangePickerClassStyles table of the API topic. The CSS variables, shown at the end of this section, restyle every picker at once.
Component's Style & Class:
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
Styles & Classes:
:
:
November 2026
S
M
T
W
T
F
S
The CSS variables cover what no parameter does. Set on
:root, they re-skin every picker; on an ancestor, the pickers inside it; in Style, one
picker - the field and the calendar it opens alike, since the calendar keeps inheriting from the picker
while it is open. A variable in Styles.Callout wins over them on the calendar. They restyle the
default, not a choice: an explicit Color or Size wins over the variables for what it sets.
November 2026
S
M
T
W
T
F
S
November 2026
S
M
T
W
T
F
S
RTL
Set Dir to BitDir.Rtl to render the DateRangePicker in a right-to-left layout. The calendar, the
navigation buttons and the arrow-key navigation all mirror accordingly. A right-to-left Culture switches
the direction on its own, so Dir is only needed to override it.
Left unset, Dir follows the page's direction (or the culture's, as above);
Left unset, Dir follows the page's direction (or the culture's, as above);
BitDir.Auto
takes the direction of the content. In a right-to-left picker ArrowLeft moves to the next day and
ArrowRight to the previous one, and IconPlacement's Start is the right side of
the field. The callout opens right-to-left as well.
November 2026
S
M
T
W
T
F
S
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.