| Name |
Type |
Default value |
Description |
|---|
| AllowTextInput |
bool |
false |
Whether or not the DateRangePicker allows string date inputs. A typed range is validated against every restriction the calendar enforces (MinDate, MaxDate, MinRange, MaxRange, the disabled days and ExcludeDisabledDates), so an out-of-bounds range is rejected as an invalid value. |
| ApplyButtonText |
string |
Apply |
The text of the button that commits the picked range, rendered while AutoApply is off. |
| AutoApply |
bool |
true |
Whether every pick is applied to the value as it is made. Turning it off makes the callout a transaction: it renders a Cancel and an Apply button and rolls the range back unless Apply commits it. It has no effect on a Standalone picker and it overrides AutoClose. |
| AutoClose |
bool |
true |
Whether the DateRangePicker closes automatically after selecting the second value, or after applying a preset. Ignored while AutoApply is off (the callout then waits for its Apply button), on a Standalone picker, and while IsOpen is bound one way. |
| AutoFocus |
bool |
false |
Whether the input of the picker gets the focus as soon as it renders for the first time. A standalone picker carries its value in a hidden input nobody is meant to land on, so it has nothing to place the focus on. |
| CalloutAriaLabel |
string |
Calendar |
Aria label of the DateRangePicker's callout for screen readers. |
| CalloutFooterTemplate |
RenderFragment? |
null |
Custom template to render at the bottom of the callout, below everything it holds. |
| CalloutHeaderTemplate |
RenderFragment? |
null |
Custom template to render at the top of the callout, above everything it holds. |
| CalloutHtmlAttributes |
Dictionary<string, object> |
new Dictionary<string, object>() |
Capture and render additional html attributes for the DateRangePicker's callout. |
| CancelButtonText |
string |
Cancel |
The text of the button that discards the picked range, rendered while AutoApply is off. |
| Classes |
BitDateRangePickerClassStyles? |
null |
Custom CSS classes for different parts of the BitDateRangePicker. |
| ClearButtonIcon |
BitIconInfo? |
null |
The icon to display inside the clear button. Takes precedence over ClearButtonIconName when both are set. |
| ClearButtonIconName |
string? |
null |
The name of the clear button's icon from the built-in Fluent UI icon set. |
| ClearButtonTitle |
string |
Clear the selected date range |
The title and the aria-label of the clear button. |
| CloseButtonIcon |
BitIconInfo? |
null |
The icon to display inside the close button. Takes precedence over CloseButtonIconName when both are set. |
| CloseButtonIconName |
string? |
null |
The name of the close button's icon from the built-in Fluent UI icon set. |
| CloseButtonTitle |
string |
Close date range picker |
The title of the close button (tooltip). |
| Color |
BitColor? |
null |
The general color of the DateRangePicker that applies to the today day button, the selected range, the highlighted current month and the selected AM/PM buttons. An explicit value wins over the --bit-DateRangePicker-* accent, text, hover, active, range and focus color variables; left unset, the DateRangePicker is primary unless they say otherwise. |
| ContinuousSpinDelay |
int |
400 |
The delay in milliseconds before the hour/minute starts changing continuously while an increase/decrease button of the time picker is held down. |
| ContinuousSpinInterval |
int |
75 |
The interval in milliseconds between two consecutive changes while an increase/decrease button of the time picker is held down. |
| Culture |
CultureInfo? |
null |
CultureInfo for the DateRangePicker. If not set, CultureInfo.CurrentUICulture is used. It drives the calendar system of the grids (e.g. Persian for fa-IR), the month and day names, the first day of the week, the default DateFormat and the parsing of typed text, the AM/PM designators and the text direction. It does not translate the picker's own titles and labels, which are parameters of their own. |
| DateFormat |
string? |
null |
The format of each of the two dates in the DateRangePicker. Defaults to the short date pattern of the Culture, extended with the time pattern when ShowTimePicker is enabled. It is also the pattern typed text is parsed with when AllowTextInput is enabled; with the default format and the time picker on, a bare date is accepted too. |
| DayCellTemplate |
RenderFragment<DateTimeOffset>? |
null |
Custom template to render the day cells of the DateRangePicker. The context is the day at midnight in the TimeZone; the template replaces only the content of the day button, which still handles the selection, the states and the accessible name. |
| DisabledDateErrorMessage |
string? |
null |
The custom validation error message for a typed range that lands on a day blocked by DisabledDates, DisabledDaysOfWeek or IsDateDisabled (or covers one under ExcludeDisabledDates), told apart from a range that merely breaks the bounds. Defaults to "The {DisplayName} field contains a date that is not available." It reaches the screen through the cascading EditContext. |
| DisabledDates |
IEnumerable<DateTimeOffset>? |
null |
The list of dates that are disabled (not selectable) in the DateRangePicker, in addition to MinDate and MaxDate. Compared by calendar day in the TimeZone, so the time of each entry does not matter. A range may still span over them unless ExcludeDisabledDates is set. |
| DisabledDaysOfWeek |
IEnumerable<DayOfWeek>? |
null |
The days of the week that are disabled (not selectable) in the DateRangePicker (e.g. weekends). A range may still span over them unless ExcludeDisabledDates is set. |
| DisableFuture |
bool |
false |
Disables every day after today, exactly as a MaxDate of today would. When both are set, the earlier of the two bounds wins. Today stays selectable, and is taken from the Today parameter when it is set. |
| DisablePast |
bool |
false |
Disables every day before today, exactly as a MinDate of today would. When both are set, the later of the two bounds wins. Today stays selectable, and is taken from the Today parameter when it is set. |
| DropDirection |
BitDropDirection |
BitDropDirection.TopAndBottom |
Determines the allowed drop directions of the callout: TopAndBottom (default) opens it below or above the field, All lets it open beside the field too when that is where the room is. |
| EndTimeDecreaseHourIcon |
BitIconInfo? |
null |
The icon to display inside the end time-picker's decrease-hour button. Takes precedence over EndTimeDecreaseHourIconName when both are set. |
| EndTimeDecreaseHourIconName |
string? |
null |
The name of the end time-picker's decrease-hour button icon from the built-in Fluent UI icon set. |
| EndTimeDecreaseHourTitle |
string |
Decrease end hour |
The title and the aria-label of the end time-picker's decrease-hour button. |
| EndTimeDecreaseMinuteIcon |
BitIconInfo? |
null |
The icon to display inside the end time-picker's decrease-minute button. Takes precedence over EndTimeDecreaseMinuteIconName when both are set. |
| EndTimeDecreaseMinuteIconName |
string? |
null |
The name of the end time-picker's decrease-minute button icon from the built-in Fluent UI icon set. |
| EndTimeDecreaseMinuteTitle |
string |
Decrease end minute |
The title and the aria-label of the end time-picker's decrease-minute button. |
| EndTimeHourInputAriaLabel |
string |
End hour |
The aria-label of the end time-picker's hour input. |
| EndTimeIncreaseHourIcon |
BitIconInfo? |
null |
The icon to display inside the end time-picker's increase-hour button. Takes precedence over EndTimeIncreaseHourIconName when both are set. |
| EndTimeIncreaseHourIconName |
string? |
null |
The name of the end time-picker's increase-hour button icon from the built-in Fluent UI icon set. |
| EndTimeIncreaseHourTitle |
string |
Increase end hour |
The title and the aria-label of the end time-picker's increase-hour button. |
| EndTimeIncreaseMinuteIcon |
BitIconInfo? |
null |
The icon to display inside the end time-picker's increase-minute button. Takes precedence over EndTimeIncreaseMinuteIconName when both are set. |
| EndTimeIncreaseMinuteIconName |
string? |
null |
The name of the end time-picker's increase-minute button icon from the built-in Fluent UI icon set. |
| EndTimeIncreaseMinuteTitle |
string |
Increase end minute |
The title and the aria-label of the end time-picker's increase-minute button. |
| EndTimeMinuteInputAriaLabel |
string |
End minute |
The aria-label of the end time-picker's minute input. |
| ErrorMessage |
string? |
null |
The message shown below the DateRangePicker for a rejection the app decided on its own (a server response, a cross-field rule). It marks the DateRangePicker invalid, is referenced by the input's aria-describedby and is announced as it appears. Standalone, it follows the calendar and describes it instead. |
| ErrorMessageAriaLabel |
string? |
null |
The text a screen reader is given for a rejection that has no text of its own: an ErrorMessageTemplate, which is free to render anything at all, or the forced Invalid state. It is announced through the live region the moment the rejection shows up - in place of the default "Invalid input" for a template, and only when it is set for the forced state - and the input references it through aria-describedby, so the same reason is read out on every later focus too. A plain ErrorMessage is its own text and never uses it. Give it the reason the template shows, in the language of the page: a template switching to another reason is only announced again when this text switches along with it. Cascaded through BitParams it reaches every DateRangePicker under it, so set it there only as a generic replacement for "Invalid input". |
| ErrorMessageTemplate |
RenderFragment? |
null |
The custom content of the error message, which replaces ErrorMessage and marks the DateRangePicker invalid the same way. It replaces the message for a screen reader as well: a template is free to render anything at all, so the live region announces ErrorMessageAriaLabel for it, or a bare "Invalid input" when that is not set. |
| ExcludeDisabledDates |
bool |
false |
Whether the disabled days are excluded from the selected range. By default a range simply spans over the disabled days between its two ends. When enabled, once the start date is picked every day whose range would contain a disabled day becomes unselectable. |
| FirstDayOfWeek |
DayOfWeek? |
null |
Overrides the first day of the week in the day picker. If not set, the first day of the week of the Culture is used. |
| FixedWeeks |
bool |
false |
Whether the day picker should always render six weeks, filling the extra rows with the days of the adjacent months, to keep the calendar height fixed while navigating between months. It is always on when MonthCount renders more than one month, so the months keep an even height next to each other. |
| GetDayClass |
Func<DateTimeOffset, string?>? |
null |
Custom function to provide additional CSS classes for each day button of the DateRangePicker. It is handed the day at midnight in the TimeZone, returns null for no class, and runs for every day cell on every render. The buttons are inside the callout, which a component-scoped stylesheet only reaches through ::deep. |
| GoToNextMonthTitle |
string |
Go to next month |
The title of the Go to next month button (tooltip). |
| GoToNextYearRangeTitle |
string |
Next year range {0} - {1} |
The title of the Go to next year range button (tooltip). |
| GoToNextYearTitle |
string |
Go to next year {0} |
The title of the Go to next year button (tooltip). |
| GoToPrevMonthTitle |
string |
Go to previous month |
The title of the Go to previous month button (tooltip). |
| GoToPrevYearRangeTitle |
string |
Previous year range {0} - {1} |
The title of the Go to previous year range button (tooltip). |
| GoToPrevYearTitle |
string |
Go to previous year {0} |
The title of the Go to previous year button (tooltip). |
| GoToTodayIcon |
BitIconInfo? |
null |
The icon to display inside the GoToToday button. Takes precedence over GoToTodayIconName when both are set. |
| GoToTodayIconName |
string? |
null |
The name of the GoToToday button's icon from the built-in Fluent UI icon set. |
| GoToTodayTitle |
string |
Go to today |
The title of the GoToToday button (tooltip). |
| HasBorder |
bool |
true |
Determines if the DateRangePicker has a border. |
| HideTimePickerIcon |
BitIconInfo? |
null |
The icon to display inside the HideTimePicker button. Takes precedence over HideTimePickerIconName when both are set. |
| HideTimePickerIconName |
string? |
null |
The name of the HideTimePicker button's icon from the built-in Fluent UI icon set. |
| HideTimePickerTitle |
string |
Hide time picker |
The title of the HideTimePicker button (tooltip). |
| HighlightCurrentMonth |
bool |
false |
Whether the month picker should highlight the current month (today's month, while the month picker shows today's year). |
| HighlightedDates |
IEnumerable<DateTimeOffset>? |
null |
The list of dates that are highlighted (marked) in the day picker of the DateRangePicker. Compared by calendar day in the TimeZone; a highlighted day stays selectable. |
| HighlightSelectedMonth |
bool |
false |
Whether the month picker should highlight the selected month, which is the month the day picker is currently showing. |
| HighlightToday |
bool |
true |
Whether the day picker highlights today's cell. It only affects the paint: the cell still reports itself as the current date to assistive technologies. |
| HourStep |
int |
1 |
The step, in hours, the spin buttons move the hour by. A step greater than 1 lays a grid over the day, starting at midnight, that every hour the buttons produce sits on. A time entered as text is not held to it. Values below 1 are treated as 1. |
| Icon |
BitIconInfo? |
null |
The icon to display. Takes precedence over IconName when both are set. Use for external libraries (e.g. BitIconInfo.Fa("solid calendar"), BitIconInfo.Bi("calendar3"), BitIconInfo.Css("my-class")). |
| IconName |
string? |
CalendarMirrored |
The name of the icon from the built-in Fluent UI icon set. For external icon libraries, use Icon instead. |
| IconPlacement |
BitPlacement |
BitPlacement.End |
Determines the side of the input the DateRangePicker's icon is rendered on. Only Start and End are honoured; any other value leaves the icon on the end side. The side follows the reading direction: Start is the left of an LTR input and the right of an RTL one. |
| IconTemplate |
RenderFragment? |
null |
Custom template for the DateRangePicker's icon. |
| Invalid |
bool |
false |
Marks the DateRangePicker invalid without an EditContext having said so: the same look and aria-invalid a failing validation gives it. ErrorMessage implies it. It says nothing more to a screen reader unless ErrorMessageAriaLabel gives it a reason to announce. |
| InvalidErrorMessage |
string? |
null |
The custom validation error message for a typed text that cannot be read as a range with ValueFormat and DateFormat. Defaults to "The {DisplayName} field is not valid." It reaches the screen through the cascading EditContext (see ShowValidationMessage). |
| IsDateDisabled |
Func<DateTimeOffset, bool>? |
null |
Custom function to determine if a specific date is disabled (not selectable) in the DateRangePicker. It is handed each day at midnight in the TimeZone and is called for every day cell on every render, so keep it cheap. |
| IsOpen |
bool |
false |
Whether or not the DateRangePicker's callout is open. Two-way bindable (@bind-IsOpen); bound one way, the picker never closes the callout itself and the page decides. Ignored on a Standalone picker. |
| Label |
string? |
null |
The text of the DateRangePicker's label. |
| LabelTemplate |
RenderFragment? |
null |
Custom template for the DateRangePicker's label. |
| MaxDate |
DateTimeOffset? |
null |
The maximum date allowed for the DateRangePicker. The days after it are disabled and the navigation stops at its month; a day counts from its midnight, so the day of MaxDate itself stays selectable. |
| MaxRange |
TimeSpan? |
null |
The longest span the selected range is allowed to cover. The day grid is bounded by it in whole days, equally far either side of the picked start date, and the time picker refuses a time that would push the span past it - so a MaxRange shorter than a day leaves the day the range started on as the only one it can end on. |
| MinDate |
DateTimeOffset? |
null |
The minimum date allowed for the DateRangePicker. The days before it are disabled and the navigation stops at its month. A day counts from its midnight, so a MinDate later than midnight disables its own day too: pass a midnight (e.g. DateTimeOffset.Now.Date) to keep it. |
| MinRange |
TimeSpan? |
null |
The minimum number of days that the selected range must span in the DateRangePicker. Only the whole days of the provided TimeSpan are considered, counted between the start and the end day: TimeSpan.FromDays(3) puts the end at least three days after the start, and less than a day has no effect. Once the start is picked, the days closer to it on either side are disabled. |
| MinuteStep |
int |
1 |
The step, in minutes, the spin buttons move the minute by. A step greater than 1 lays a grid over the hour, starting at the top of it, that every minute the buttons produce sits on - which is what turns it into a five-minute or quarter-hour picker. A time entered as text is not held to it. Values below 1 are treated as 1. |
| MonthCellTemplate |
RenderFragment<DateTimeOffset>? |
null |
Custom template to render the month cells of the DateRangePicker. The context is the first day of the month at midnight in the TimeZone; the template replaces only the content of the month button. |
| MonthCount |
int |
1 |
The number of consecutive months rendered side by side in the day picker (1 to 3), which makes picking a range that spans two months a single move. It falls back to fewer months, down to one, whenever the viewport is not wide enough to fit them all when the callout opens. Values outside 1 to 3 are clamped. With more than one month, FixedWeeks is always on and ShowOutsideDays always off. |
| MonthPickerToggleTitle |
string |
{0}, change month |
The title of the month picker's toggle (tooltip). |
| NextMonthNavIcon |
BitIconInfo? |
null |
The icon to display inside the next-month navigation button. Takes precedence over NextMonthNavIconName when both are set. |
| NextMonthNavIconName |
string? |
null |
The name of the next-month navigation button's icon from the built-in Fluent UI icon set. |
| NextYearNavIcon |
BitIconInfo? |
null |
The icon to display inside the next-year navigation button. Takes precedence over NextYearNavIconName when both are set. |
| NextYearNavIconName |
string? |
null |
The name of the next-year navigation button's icon from the built-in Fluent UI icon set. |
| NextYearRangeNavIcon |
BitIconInfo? |
null |
The icon to display inside the next-year-range navigation button. Takes precedence over NextYearRangeNavIconName when both are set. |
| NextYearRangeNavIconName |
string? |
null |
The name of the next-year-range navigation button's icon from the built-in Fluent UI icon set. |
| NoDateText |
string |
--- |
The text rendered in place of a date that has not been picked yet, which is also the token accepted back for an open-ended range when AllowTextInput is enabled. |
| OnApply |
EventCallback<BitDateRangePickerValue?> |
|
The callback for when the picked range is committed by the Apply button of a picker that does not AutoApply. |
| OnCancel |
EventCallback |
|
The callback for when the picked range is discarded by the Cancel button of a picker that does not AutoApply. A callout dismissed any other way rolls the range back just the same, but reports itself through OnClose alone. |
| OnClear |
EventCallback |
|
Callback for when the value is cleared using the clear button, raised after the value has become null and the focus has returned to the input. |
| OnClick |
EventCallback |
|
The callback for clicking on the DateRangePicker's input. It is raised after the callout has opened, also when OpenCallout opened it. |
| OnClose |
EventCallback |
|
Callback for when the callout is closed. |
| OnFocus |
EventCallback |
|
The callback for focusing the DateRangePicker's input. |
| OnFocusIn |
EventCallback |
|
The callback for when the focus moves into the DateRangePicker's input. |
| OnFocusOut |
EventCallback |
|
The callback for when the focus moves out of the DateRangePicker's input. |
| OnMonthChange |
EventCallback<DateTimeOffset> |
|
Callback for when the displayed month of the day picker changes. The argument is the first day of the newly displayed month. |
| OnOpen |
EventCallback |
|
Callback for when the callout is opened. |
| OnPresetSelect |
EventCallback<BitDateRangePickerPreset> |
|
The callback for when a preset is selected. The argument is the selected preset. It is not raised for a preset the calendar's restrictions refuse. |
| OnSelectDate |
EventCallback<BitDateRangePickerValue?> |
|
The callback for when the user picks a day in the calendar, reporting the range as it stands after the pick - so a range with only its start date set, while the second day is still to be chosen, is reported too. It is raised for day picks only: presets, typed text, the time picker and the clear button change the value without it (OnChange follows them all). |
| OutOfRangeErrorMessage |
string? |
null |
The custom validation error message for a range entered as text that breaks the bounds (MinDate, MaxDate, DisablePast, DisableFuture) or MinRange and MaxRange. Text that does not read as a range at all reports InvalidErrorMessage instead, and a range touching a day blocked by DisabledDates, DisabledDaysOfWeek or IsDateDisabled reports DisabledDateErrorMessage. Defaults to "The {DisplayName} field is out of the allowed range." It reaches the screen through the cascading EditContext. |
| PagedNavigation |
bool |
false |
Whether the previous and next navigation buttons move the calendar by all of its rendered months instead of one, so consecutive pages of a multi-month calendar never overlap. It has no effect when MonthCount renders a single month. |
| Placeholder |
string |
string.Empty |
The placeholder text of the DateRangePicker's input. |
| Presets |
IEnumerable<BitDateRangePickerPreset>? |
null |
The list of shortcuts, rendered next to the calendar, that fill the DateRangePicker with a predefined range (e.g. "Last 7 days"). A preset's range is applied exactly as given, times included. One whose ends fall outside MinDate/MaxDate or on a disabled day, that is shorter than MinRange, or that covers a disabled day under ExcludeDisabledDates is ignored; one longer than MaxRange is cut to it. |
| PresetsAriaLabel |
string |
Predefined date ranges |
The aria label of the presets' container for screen readers. |
| PrevMonthNavIcon |
BitIconInfo? |
null |
The icon to display inside the previous-month navigation button. Takes precedence over PrevMonthNavIconName when both are set. |
| PrevMonthNavIconName |
string? |
null |
The name of the previous-month navigation button's icon from the built-in Fluent UI icon set. |
| PrevYearNavIcon |
BitIconInfo? |
null |
The icon to display inside the previous-year navigation button. Takes precedence over PrevYearNavIconName when both are set. |
| PrevYearNavIconName |
string? |
null |
The name of the previous-year navigation button's icon from the built-in Fluent UI icon set. |
| PrevYearRangeNavIcon |
BitIconInfo? |
null |
The icon to display inside the previous-year-range navigation button. Takes precedence over PrevYearRangeNavIconName when both are set. |
| PrevYearRangeNavIconName |
string? |
null |
The name of the previous-year-range navigation button's icon from the built-in Fluent UI icon set. |
| Responsive |
bool |
false |
Enables the responsive mode in small screens: below the small-screen breakpoint the callout becomes a full-width panel that slides down from the top of the screen and is dismissed by swiping it up. It has no effect on a Standalone picker. |
| SelectedDateAriaAtomic |
string |
Selected date range {0} |
The aria-atomic live text announcing the currently selected date range, formatted with the value of the input. |
| ShowClearButton |
bool |
false |
Whether the clear button should be shown or not when the DateRangePicker has a value. It is never shown while the picker is Disabled or ReadOnly. |
| ShowCloseButton |
bool |
false |
Whether the DateRangePicker's close button should be shown or not. It is never rendered on a Standalone picker. |
| ShowGoToToday |
bool |
true |
Whether the GoToToday button should be shown or not. The button navigates back to today's month without selecting anything, and is disabled while that month is already shown. |
| ShowMonthPicker |
bool |
true |
Whether the month picker is shown or hidden. Hidden, the calendar is navigated with the month arrows alone. |
| ShowMonthPickerAsOverlay |
bool |
false |
Show month picker on top of date range picker when visible: instead of beside the day grid, it opens over it from the month title. The picker does this on its own on a narrow viewport and whenever the time picker is shown beside the calendar. |
| ShowOutsideDays |
bool |
true |
Whether the days of the previous and next months, filling the first and last week rows, should be rendered. They can be picked like any other day. It has no effect when MonthCount renders more than one month, since those days would then show up in two grids at once. |
| ShowTimePicker |
bool |
false |
Whether or not render the time-picker: a start time for StartDate and an end time for EndDate. It also adds the time to the default DateFormat. Without it, a picked range runs from 00:00 on its first day to 23:59 on its last (or the times of StartingValue). |
| ShowTimePickerAsOverlay |
bool |
false |
Show the time picker on top of the date range picker when visible: instead of beside the calendar, it is opened over it by a toggle button (ShowTimePickerIcon / HideTimePickerIcon). The picker does this on its own on a narrow viewport. |
| ShowTimePickerIcon |
BitIconInfo? |
null |
The icon to display inside the ShowTimePicker button. Takes precedence over ShowTimePickerIconName when both are set. |
| ShowTimePickerIconName |
string? |
null |
The name of the ShowTimePicker button's icon from the built-in Fluent UI icon set. |
| ShowTimePickerTitle |
string |
Show time picker |
The title of the ShowTimePicker button (tooltip). |
| ShowValidationMessage |
bool |
false |
Shows the messages the cascading EditContext holds for the bound field (the InvalidErrorMessage, DisabledDateErrorMessage or OutOfRangeErrorMessage of a typed text among them) under the DateRangePicker, where ErrorMessage goes, so an EditForm needs no ValidationMessage component beside it. The input references them through aria-describedby, so they are read out when it takes the focus; they are not announced as they appear, since a submit validates every field at once. An ErrorMessage or ErrorMessageTemplate of the app's own wins the place while it is set. |
| ShowWeekNumbers |
bool |
false |
Whether the week number (weeks 1 to 53) should be shown before each week row. |
| Size |
BitSize? |
null |
Sets the preset size (Small, Medium, Large) of the field, the calendar cells and the label. The callout takes the size with it. An explicit value wins over the --bit-DateRangePicker-* size variables (input height and font size, label font size, day size and font size); left unset, the DateRangePicker is medium unless they say otherwise. |
| Standalone |
bool |
false |
Whether the DateRangePicker is rendered standalone or with the input component and callout. Standalone, the calendar is part of the page and every pick applies at once; IsOpen, AutoClose, AutoApply, ShowCloseButton, Responsive, DropDirection and AutoFocus have no effect, and the value is carried by a hidden input. |
| StartingValue |
BitDateRangePickerValue? |
null |
Specifies the date and time of the date and time picker when it is opened without any selected value: the month of its StartDate is the one shown, and its start and end times are the times the time picker starts from and the picked days take. It never becomes the value itself. |
| StartTimeDecreaseHourIcon |
BitIconInfo? |
null |
The icon to display inside the start time-picker's decrease-hour button. Takes precedence over StartTimeDecreaseHourIconName when both are set. |
| StartTimeDecreaseHourIconName |
string? |
null |
The name of the start time-picker's decrease-hour button icon from the built-in Fluent UI icon set. |
| StartTimeDecreaseHourTitle |
string |
Decrease start hour |
The title and the aria-label of the start time-picker's decrease-hour button. |
| StartTimeDecreaseMinuteIcon |
BitIconInfo? |
null |
The icon to display inside the start time-picker's decrease-minute button. Takes precedence over StartTimeDecreaseMinuteIconName when both are set. |
| StartTimeDecreaseMinuteIconName |
string? |
null |
The name of the start time-picker's decrease-minute button icon from the built-in Fluent UI icon set. |
| StartTimeDecreaseMinuteTitle |
string |
Decrease start minute |
The title and the aria-label of the start time-picker's decrease-minute button. |
| StartTimeHourInputAriaLabel |
string |
Start hour |
The aria-label of the start time-picker's hour input. |
| StartTimeIncreaseHourIcon |
BitIconInfo? |
null |
The icon to display inside the start time-picker's increase-hour button. Takes precedence over StartTimeIncreaseHourIconName when both are set. |
| StartTimeIncreaseHourIconName |
string? |
null |
The name of the start time-picker's increase-hour button icon from the built-in Fluent UI icon set. |
| StartTimeIncreaseHourTitle |
string |
Increase start hour |
The title and the aria-label of the start time-picker's increase-hour button. |
| StartTimeIncreaseMinuteIcon |
BitIconInfo? |
null |
The icon to display inside the start time-picker's increase-minute button. Takes precedence over StartTimeIncreaseMinuteIconName when both are set. |
| StartTimeIncreaseMinuteIconName |
string? |
null |
The name of the start time-picker's increase-minute button icon from the built-in Fluent UI icon set. |
| StartTimeIncreaseMinuteTitle |
string |
Increase start minute |
The title and the aria-label of the start time-picker's increase-minute button. |
| StartTimeMinuteInputAriaLabel |
string |
Start minute |
The aria-label of the start time-picker's minute input. |
| Styles |
BitDateRangePickerClassStyles? |
null |
Custom CSS styles for different parts of the BitDateRangePicker. |
| TimeFormat |
BitTimeFormat |
BitTimeFormat.TwentyFourHours |
Time format of the time-pickers, 24H or 12H. TwelveHours adds AM/PM buttons to each time and changes the time pattern of the default DateFormat. |
| TimeZone |
TimeZoneInfo? |
null |
TimeZone for the DateRangePicker. If not set, TimeZoneInfo.Local is used, which is the browser's zone under WebAssembly but the server's under Blazor Server and prerendering. Picked dates carry its offset, and today, the bounds, the disabled and highlighted dates and the times are all read in it. |
| Today |
DateTimeOffset? |
null |
Overrides the date considered as today by the DateRangePicker, which is DateTimeOffset.Now by default. It moves the highlighted today cell, the GoToToday button, DisablePast/DisableFuture and the month an empty picker opens on. |
| Underlined |
bool |
false |
Whether or not the Text field of the DateRangePicker is underlined. |
| ValueFormat |
string |
Start: {0} - End: {1} |
The string format used to show the DateRangePicker's value in its input, where {0} is the start date and {1} is the end date. It is also the template used to parse the typed text back when AllowTextInput is enabled, for which it must hold {0} before {1} with some text between them; its literal parts are matched ignoring case. |
| WeekNumberRule |
CalendarWeekRule? |
null |
The rule used to calculate the week numbers. If not set, CalendarWeekRule.FirstFullWeek is used. |
| WeekNumbersHeaderTitle |
string |
Week |
The accessible name of the header cell above the week numbers column, which shows a number sign (#). |
| WeekNumberTitle |
string |
Week number {0} |
The title of the week number (tooltip). |
| YearCellTemplate |
RenderFragment<int>? |
null |
Custom template to render the year cells of the DateRangePicker. The context is the year, counted in the Culture's calendar; the template replaces only the content of the year button. |
| YearPickerToggleTitle |
string |
{0}, change year |
The title of the year picker's toggle (tooltip). |
| YearRangePickerToggleTitle |
string |
{0} - {1}, change month |
The title of the year range picker's toggle (tooltip). |