Skip to content

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.

CSS variables

The public custom properties this component reads off its root, for what no parameter covers.

Every variable is read with a fallback and never declared by the component, so it inherits like any other custom property: set one on :root (or in a [bit-theme] block) to restyle every instance, on any ancestor to restyle the ones inside it, or on the Style of one instance to restyle it - and any instance nested inside it, which inherits the value too; a parameter changes one alone, as does the real CSS property on the instance's Style / Styles when that property does not inherit (opacity: 1 keeps one disabled instance undimmed without undimming a disabled one inside it), while an inherited one such as color or font-family also reaches the nested instances that do not set it themselves. Leave a variable unset and the component falls back to the theme token beside it.

BitDateRangePicker CSS variables

Name Default value Description
--bit-DateRangePicker-color --bit-clr-pri The accent: the two ends of the selected range, today's cell, the selected preset, the active AM/PM button and the border of the field while the calendar is open. The Color parameter wins over it.
--bit-DateRangePicker-text-color --bit-clr-pri-text Foreground of whatever the accent fills. The Color parameter wins over it.
--bit-DateRangePicker-hover-color --bit-clr-pri-hover The accent while hovered. The Color parameter wins over it.
--bit-DateRangePicker-active-color --bit-clr-pri-active The accent while pressed. The Color parameter wins over it.
--bit-DateRangePicker-range-background --bit-clr-pri-light Background of the days between the two ends of the selected range. The Color parameter wins over it.
--bit-DateRangePicker-preview-background --bit-clr-bg-sec Background of the range previewed while the pointer moves over the grid with only the start date picked.
--bit-DateRangePicker-focus-color --bit-clr-pri-focus Color of the focus ring, around the field and around every cell and button of the calendar. An invalid value overrides it with the error focus color, so the field never shows two states at once. The Color parameter wins over it. While it is unset, every focus ring held off its element is the library's own --bit-shd-focus-ring; the ones drawn flush against a cell or a field keep this color.
--bit-DateRangePicker-invalid-color --bit-clr-err Border and underline of the field while the value is invalid, and the error message.
--bit-DateRangePicker-required-color --bit-clr-req Color of the asterisk after a required label.
--bit-DateRangePicker-disabled-color --bit-clr-fg-dis Text and glyphs of every disabled part, in the field and in the calendar alike.
--bit-DateRangePicker-input-height --bit-siz-ctrl-md Height of the field. The Size parameter wins over it.
--bit-DateRangePicker-input-font-size --bit-tpg-fs-sm Text size of the field. The Size parameter wins over it.
--bit-DateRangePicker-input-color --bit-clr-fg-pri Text color of the field.
--bit-DateRangePicker-placeholder-color --bit-clr-fg-sec Text color of the placeholder. It replaces the grey the browser picks on its own, which is not derived from the theme and drops below the contrast floor on most surfaces.
--bit-DateRangePicker-input-background --bit-clr-bg-pri Background of the field.
--bit-DateRangePicker-input-border-color --bit-clr-brd-pri Border of the field, and its underline in the Underlined variant.
--bit-DateRangePicker-input-border-width --bit-shp-border-width Border stroke of the field.
--bit-DateRangePicker-input-radius --bit-shp-radius-control Corner radius of the field.
--bit-DateRangePicker-icon-color --bit-clr-fg-sec Color of the calendar glyph inside the field.
--bit-DateRangePicker-label-color --bit-clr-fg-pri Color of the label.
--bit-DateRangePicker-label-font-size --bit-tpg-fs-sm Text size of the label. The Size parameter wins over it.
--bit-DateRangePicker-label-font-weight --bit-tpg-field-label-font-weight Weight of the label.
--bit-DateRangePicker-callout-background --bit-clr-bg-pri Background of the calendar surface.
--bit-DateRangePicker-callout-radius --bit-shp-radius-popup Corner radius of the callout.
--bit-DateRangePicker-callout-shadow --bit-shd-popup Elevation of the callout.
--bit-DateRangePicker-calendar-padding 12px Padding around each pane of the callout: a month, the month/year picker and the presets column.
--bit-DateRangePicker-day-size 28px Width and height of a day cell. The week numbers and the navigation buttons track it, so the whole calendar scales with this one value. The Size parameter wins over it.
--bit-DateRangePicker-day-font-size --bit-tpg-fs-xs Text size of a day cell and of the weekday initials above it. The Size parameter wins over it.
--bit-DateRangePicker-day-color --bit-clr-fg-pri Text color of a day cell.
--bit-DateRangePicker-day-radius --bit-shp-radius-control Corner radius of a day cell.
--bit-DateRangePicker-day-hover-background --bit-clr-bg-pri-hover Background of a hovered day and of a hovered navigation button.
--bit-DateRangePicker-today-radius --bit-shp-radius-full Corner radius of today's cell, which is a circle by default while the other days take the day radius.
--bit-DateRangePicker-range-radius --bit-shp-radius-lg Corner radius at the two ends of the selected range, which is what gives the range its pill shape. A range of a single day takes it on all four corners.
--bit-DateRangePicker-outside-day-color --bit-clr-fg-sec Color of the days of the adjacent months rendered by ShowOutsideDays.
--bit-DateRangePicker-highlighted-background --bit-clr-bg-ter Background of a day listed in HighlightedDates.
--bit-DateRangePicker-week-day-color --bit-clr-fg-pri Color of the row of weekday initials.
--bit-DateRangePicker-week-number-color --bit-clr-fg-sec Color of the week number column.
--bit-DateRangePicker-week-number-background --bit-clr-bg-sec Background of the week number column.
--bit-DateRangePicker-header-color --bit-clr-fg-pri Color of the month and year titles above the grids.
--bit-DateRangePicker-divider-color --bit-clr-brd-sec Color of the rules between the panes of the callout and beside the week numbers.
--bit-DateRangePicker-presets-width 112px Width of the presets column.
--bit-DateRangePicker-presets-max-height 320px Height the presets column scrolls in before it starts scrolling.

API

Every parameter, public member, sub-class and enum this component exposes.

BitDateRangePicker parameters

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).

BitInputBase parameters

Name Type Default value Description
DefaultValue TValue? null The default value of the input to be used in uncontrolled mode (i.e. when the Value is not bound), typically used alongside the OnChange callback.
DisplayName string? null Gets or sets the display name for this field.
InputHtmlAttributes IReadOnlyDictionary<string, object>? null Gets or sets a collection of additional attributes that will be applied to the created element.
Name string? null Gets or sets the name of the element. Allows access by name from the associated form.
NoValidate bool false Disables the validation of the input.
OnChange EventCallback<TValue?> Callback for when the input value changes.
ReadOnly bool false Makes the input read-only.
Required bool false Makes the input required.
Value TValue? null Gets or sets the value of the input. This should be used with two-way binding.

BitInputBase public members

Name Type Default value Description
InputElement ElementReference The ElementReference of the input element.
FocusAsync() () => ValueTask Gives focus to the input element.
FocusAsync(bool preventScroll) (bool preventScroll) => ValueTask Gives focus to the input element.

BitComponentBase parameters

Name Type Default value Description
AriaLabel string? null Gets or sets the accessible label for the component, used by assistive technologies.
Class string? null Gets or sets the CSS class name(s) to apply to the rendered element.
Dir BitDir? null Gets or sets the text directionality for the component's content.
Disabled bool false Gets or sets a value indicating whether the component is disabled and cannot respond to user interaction.
ForceAnimation bool false Gets or sets a value indicating whether the component's animations play at their full duration even when reduced motion is requested.
HtmlAttributes Dictionary<string, object> new Dictionary<string, object>() Captures additional HTML attributes to be applied to the rendered element, in addition to the component's parameters. An attribute written on the component wins over an entry of the same name.
Id string? null Gets or sets the unique identifier for the component's root element.
Style string? null Gets or sets the CSS style string to apply to the rendered element.
TabIndex string? null Gets or sets the tab order index for the component when navigating with the keyboard.
Visibility BitVisibility BitVisibility.Visible Gets or sets the visibility state (visible, hidden, or collapsed) of the component.

BitComponentBase public members

Name Type Default value Description
UniqueId Guid Guid.NewGuid() Gets the readonly unique identifier for the component's root element, assigned when the component instance is constructed.
RootElement ElementReference Gets the reference to the root HTML element associated with this component.

BitDateRangePickerValue properties

Name Type Default value Description
StartDate DateTimeOffset? null Indicates the beginning of the date range. A day picked in the calendar carries the start time: 00:00 unless the time picker or StartingValue sets another.
EndDate DateTimeOffset? null Indicates the end of the date range, null while only the start is picked. A day picked in the calendar carries the end time: 23:59 unless the time picker or StartingValue sets another.

BitDateRangePickerPreset properties

Name Type Default value Description
Text string The text of the preset's button.
Value BitDateRangePickerValue? null The range applied when the preset is selected, exactly as given, times included. ValueProvider takes precedence over this when both are set.
ValueProvider Func<BitDateRangePickerValue?>? null Custom function providing the range applied when the preset is selected. Unlike Value it is evaluated on each selection, which keeps relative ranges (e.g. "Last 7 days") correct no matter how long the page has been open.
IsDisabled bool false Whether the preset's button is disabled.
Title string? null The title of the preset's button (tooltip).
Class string? null Custom CSS class for the preset's button.
Style string? null Custom CSS style for the preset's button.

BitDateRangePickerClassStyles properties

Name Type Default value Description
Root string? null Custom CSS classes/styles for the root element of the BitDateRangePicker.
ActionsContainer string? null Custom CSS classes/styles for the actions row the Apply and Cancel buttons of a picker that does not AutoApply are laid out in.
ApplyButton string? null Custom CSS classes/styles for the Apply button of a picker that does not AutoApply.
CancelButton string? null Custom CSS classes/styles for the Cancel button of a picker that does not AutoApply.
Focused string? null Custom CSS classes/styles for the focused state of the BitDateRangePicker.
Label string? null Custom CSS classes/styles for the Label of the BitDateRangePicker.
InputWrapper string? null Custom CSS classes/styles for the input wrapper of the BitDateRangePicker.
InputContainer string? null Custom CSS classes/styles for the input container of the BitDateRangePicker.
Input string? null Custom CSS classes/styles for the input of the BitDateRangePicker.
ClearButton string? null Custom CSS classes/styles for the clear button of the BitDateRangePicker.
ClearButtonIcon string? null Custom CSS classes/styles for the clear button icon of the BitDateRangePicker.
Icon string? null Custom CSS classes/styles for the icon of the BitDateRangePicker.
ErrorMessageContainer string? null Custom CSS classes/styles for the error message container of the BitDateRangePicker.
ErrorMessage string? null Custom CSS classes/styles for the error message of the BitDateRangePicker.
Overlay string? null Custom CSS classes/styles for the overlay of the BitDateRangePicker.
Callout string? null Custom CSS classes/styles for the callout of the BitDateRangePicker. A --bit-DateRangePicker-* variable set here wins over one set in Style or Styles.Root.
CalloutContainer string? null Custom CSS classes/styles for the callout container of the BitDateRangePicker.
CalloutHeader string? null Custom CSS classes/styles for the callout header, the container of the CalloutHeaderTemplate.
CalloutFooter string? null Custom CSS classes/styles for the callout footer, the container of the CalloutFooterTemplate.
Group string? null Custom CSS classes/styles for the group of the BitDateRangePicker.
PresetsContainer string? null Custom CSS classes/styles for the presets' container of the BitDateRangePicker.
PresetButton string? null Custom CSS classes/styles for each preset button of the BitDateRangePicker.
SelectedPresetButton string? null Custom CSS classes/styles for the currently selected preset button of the BitDateRangePicker.
DayPickerWrapper string? null Custom CSS classes/styles for the day-picker's wrapper of the BitDateRangePicker.
DayPickerHeader string? null Custom CSS classes/styles for the day-picker's header of the BitDateRangePicker.
DayPickerMonth string? null Custom CSS classes/styles for the day-picker's month of the BitDateRangePicker.
DayPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the day-picker's nav buttons of the BitDateRangePicker.
PrevMonthNavButton string? null Custom CSS classes/styles for the Go to previous month button of the BitDateRangePicker.
PrevMonthNavIcon string? null Custom CSS classes/styles for the Go to previous month icon of the BitDateRangePicker.
GoToTodayButton string? null Custom CSS classes/styles for the Go to today button of the BitDateRangePicker.
GoToTodayIcon string? null Custom CSS classes/styles for the Go to today icon of the BitDateRangePicker.
CloseButton string? null Custom CSS classes/styles for the close button of the BitDateRangePicker.
CloseButtonIcon string? null Custom CSS classes/styles for the close button icon of the BitDateRangePicker.
NextMonthNavButton string? null Custom CSS classes/styles for the Go to next month button of the BitDateRangePicker.
NextMonthNavIcon string? null Custom CSS classes/styles for the Go to next month icon of the BitDateRangePicker.
DaysGrid string? null Custom CSS classes/styles for the days grid of the BitDateRangePicker.
DaysHeaderRow string? null Custom CSS classes/styles for the header row of the days of the BitDateRangePicker.
WeekNumbersHeader string? null Custom CSS classes/styles for the header cell of the week numbers column of the BitDateRangePicker.
WeekDayHeader string? null Custom CSS classes/styles for each day of the week header cell of the BitDateRangePicker.
DaysRow string? null Custom CSS classes/styles for each row of the days of the BitDateRangePicker.
WeekNumber string? null Custom CSS classes/styles for the week number of the BitDateRangePicker.
DayButton string? null Custom CSS classes/styles for each day button of the BitDateRangePicker.
HighlightedDayButton string? null Custom CSS classes/styles for the highlighted day buttons of the BitDateRangePicker.
HoveredDayButtons string? null Custom CSS classes/styles for the day buttons inside the prospective range being hovered in the BitDateRangePicker.
TodayDayButton string? null Custom CSS classes/styles for today day button of the BitDateRangePicker.
StartDayButton string? null Custom CSS classes/styles for selected start day button of the BitDateRangePicker.
SelectedDayButtons string? null Custom CSS classes/styles for selected day buttons of the BitDateRangePicker.
EndDayButton string? null Custom CSS classes/styles for selected end day button of the BitDateRangePicker.
StartAndEndSelectionDays string? null Custom CSS classes/styles for selected start and end day buttons of the BitDateRangePicker.
TimePickerWrapper string? null Custom CSS classes/styles for the time-picker's wrapper of the BitDateRangePicker.
TimePickerHeader string? null Custom CSS classes/styles for the time-picker's header of the BitDateRangePicker.
TimePickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the time-picker's nav buttons of the BitDateRangePicker.
ShowTimePickerButton string? null Custom CSS classes/styles for the show time-picker button of the BitDateRangePicker.
ShowTimePickerIcon string? null Custom CSS classes/styles for the show time-picker icon of the BitDateRangePicker.
HideTimePickerButton string? null Custom CSS classes/styles for the hide time-picker button of the BitDateRangePicker.
HideTimePickerIcon string? null Custom CSS classes/styles for the hide time-picker icon of the BitDateRangePicker.
TimeInputContainer string? null Custom CSS classes/styles for the time's input container of the BitDateRangePicker.
StartTimeInputContainer string? null Custom CSS classes/styles for the start time's input container of the BitDateRangePicker.
EndTimeInputContainer string? null Custom CSS classes/styles for the end time's input container of the BitDateRangePicker.
StartTimeHourInputContainer string? null Custom CSS classes/styles for the start time's hour input container of the BitDateRangePicker.
EndTimeHourInputContainer string? null Custom CSS classes/styles for the end time's hour input container of the BitDateRangePicker.
StartTimeMinuteInputContainer string? null Custom CSS classes/styles for the start time's minute input container of the BitDateRangePicker.
EndTimeMinuteInputContainer string? null Custom CSS classes/styles for the end time's minute input container of the BitDateRangePicker.
StartTimeHourInput string? null Custom CSS classes/styles for the start time's hour input of the BitDateRangePicker.
EndTimeHourInput string? null Custom CSS classes/styles for the end time's hour input of the BitDateRangePicker.
StartTimeMinuteInput string? null Custom CSS classes/styles for the start time's minute input of the BitDateRangePicker.
EndTimeMinuteInput string? null Custom CSS classes/styles for the end time's minute input of the BitDateRangePicker.
StartTimeHourMinuteSeparator string? null Custom CSS classes/styles for the start time's hour/minute separator of the BitDateRangePicker.
EndTimeHourMinuteSeparator string? null Custom CSS classes/styles for the end time's hour/minute separator of the BitDateRangePicker.
StartTimeIncreaseHourButton string? null Custom CSS classes/styles for the start time's increase hour button of the BitDateRangePicker.
StartTimeIncreaseHourIcon string? null Custom CSS classes/styles for the start time's increase hour icon of the BitDateRangePicker.
StartTimeDecreaseHourButton string? null Custom CSS classes/styles for the start time's decrease hour button of the BitDateRangePicker.
StartTimeDecreaseHourIcon string? null Custom CSS classes/styles for the start time's decrease hour icon of the BitDateRangePicker.
StartTimeIncreaseMinuteButton string? null Custom CSS classes/styles for the start time's increase minute button of the BitDateRangePicker.
StartTimeIncreaseMinuteIcon string? null Custom CSS classes/styles for the start time's increase minute icon of the BitDateRangePicker.
StartTimeDecreaseMinuteButton string? null Custom CSS classes/styles for the start time's decrease minute button of the BitDateRangePicker.
StartTimeDecreaseMinuteIcon string? null Custom CSS classes/styles for the start time's decrease minute icon of the BitDateRangePicker.
EndTimeIncreaseHourButton string? null Custom CSS classes/styles for the end time's increase hour button of the BitDateRangePicker.
EndTimeIncreaseHourIcon string? null Custom CSS classes/styles for the end time's increase hour icon of the BitDateRangePicker.
EndTimeDecreaseHourButton string? null Custom CSS classes/styles for the end time's decrease hour button of the BitDateRangePicker.
EndTimeDecreaseHourIcon string? null Custom CSS classes/styles for the end time's decrease hour icon of the BitDateRangePicker.
EndTimeIncreaseMinuteButton string? null Custom CSS classes/styles for the end time's increase minute button of the BitDateRangePicker.
EndTimeIncreaseMinuteIcon string? null Custom CSS classes/styles for the end time's increase minute icon of the BitDateRangePicker.
EndTimeDecreaseMinuteButton string? null Custom CSS classes/styles for the end time's decrease minute button of the BitDateRangePicker.
EndTimeDecreaseMinuteIcon string? null Custom CSS classes/styles for the end time's decrease minute icon of the BitDateRangePicker.
StartTimeAmPmContainer string? null Custom CSS classes/styles for the start time's Am Pm container of the BitDateRangePicker.
EndTimeAmPmContainer string? null Custom CSS classes/styles for the end time's Am Pm container of the BitDateRangePicker.
StartTimeAmButton string? null Custom CSS classes/styles for the start time's Am button of the BitDateRangePicker.
StartTimePmButton string? null Custom CSS classes/styles for the start time's Pm button of the BitDateRangePicker.
EndTimeAmButton string? null Custom CSS classes/styles for the end time's Am button of the BitDateRangePicker.
EndTimePmButton string? null Custom CSS classes/styles for the end time's Pm button of the BitDateRangePicker.
Divider string? null Custom CSS classes/styles for the main divider of the BitDateRangePicker.
YearMonthPickerWrapper string? null Custom CSS classes/styles for the year-month-picker's wrapper of the BitDateRangePicker.
MonthPickerHeader string? null Custom CSS classes/styles for the month-picker's header of the BitDateRangePicker.
YearPickerToggleButton string? null Custom CSS classes/styles for the year-picker's toggle button of the BitDateRangePicker.
MonthPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the month-picker's nav buttons of the BitDateRangePicker.
PrevYearNavButton string? null Custom CSS classes/styles for the Go to previous year button of the BitDateRangePicker.
PrevYearNavIcon string? null Custom CSS classes/styles for the Go to previous year icon of the BitDateRangePicker.
NextYearNavButton string? null Custom CSS classes/styles for the Go to next year button of the BitDateRangePicker.
NextYearNavIcon string? null Custom CSS classes/styles for the Go to next year icon of the BitDateRangePicker.
MonthsContainer string? null Custom CSS classes/styles for the months container of the BitDateRangePicker.
MonthsRow string? null Custom CSS classes/styles for each row of the months of the BitDateRangePicker.
MonthButton string? null Custom CSS classes/styles for each month button of the BitDateRangePicker.
YearPickerHeader string? null Custom CSS classes/styles for the year-picker's header of the BitDateRangePicker.
MonthPickerToggleButton string? null Custom CSS classes/styles for the month-picker's toggle button of the BitDateRangePicker.
YearPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the year-picker nav buttons of the BitDateRangePicker.
PrevYearRangeNavButton string? null Custom CSS classes/styles for the Go to previous year-range button of the BitDateRangePicker.
PrevYearRangeNavIcon string? null Custom CSS classes/styles for the Go to previous year-range icon of the BitDateRangePicker.
NextYearRangeNavButton string? null Custom CSS classes/styles for the Go to next year-range button of the BitDateRangePicker.
NextYearRangeNavIcon string? null Custom CSS classes/styles for the Go to next year-range icon of the BitDateRangePicker.
YearsContainer string? null Custom CSS classes/styles for the years container of the BitDateRangePicker.
YearsRow string? null Custom CSS classes/styles for each row of the years of the BitDateRangePicker.
YearButton string? null Custom CSS classes/styles for each year button of the BitDateRangePicker.

BitIconInfo properties

Name Type Default value Description
Name string? null Gets or sets the name of the icon.
BaseClass string? null Gets or sets the base CSS class for the icon. For built-in Fluent UI icons, this defaults to "bit-icon". For external icon libraries like FontAwesome, you might set this to "fa" or leave empty.
Prefix string? null Gets or sets the CSS class prefix used before the icon name. For built-in Fluent UI icons, this defaults to "bit-icon--". For external icon libraries, you might set this to "fa-" or leave empty.

BitColor enum

Name Value Description
Primary 0 Primary general color.
Secondary 1 Secondary general color.
Tertiary 2 Tertiary general color.
Info 3 Info general color.
Success 4 Success general color.
Warning 5 Warning general color.
SevereWarning 6 SevereWarning general color.
Error 7 Error general color.
PrimaryBackground 8 Primary background color.
SecondaryBackground 9 Secondary background color.
TertiaryBackground 10 Tertiary background color.
PrimaryForeground 11 Primary foreground color.
SecondaryForeground 12 Secondary foreground color.
TertiaryForeground 13 Tertiary foreground color.
PrimaryBorder 14 Primary border color.
SecondaryBorder 15 Secondary border color.
TertiaryBorder 16 Tertiary border color.

BitDropDirection enum

Name Value Description
All 0 The direction determined automatically based on the available spaces in all directions.
TopAndBottom 1 The direction determined automatically based on the available spaces in only top and bottom directions.

BitPlacement enum

Name Value Description
Top 0 The top edge.
Bottom 1 The bottom edge.
Start 2 The edge the reading direction starts from - the left in LTR, the right in RTL. On the vertical axis, which does not turn around, it is the top.
End 3 The edge the reading direction ends at - the right in LTR, the left in RTL. On the vertical axis, which does not turn around, it is the bottom.
Left 4 The left edge, in both reading directions.
Right 5 The right edge, in both reading directions.
Center 6 The middle of the axis, against neither edge.
TopAndBottom 7 Both edges of the block axis at once.
StartAndEnd 8 Both edges of the inline axis at once, following the reading direction the way Start and End do.

BitSize enum

Name Value Description
Small 0 The small size.
Medium 1 The medium size.
Large 2 The large size.

BitTimeFormat enum

Name Value Description
TwentyFourHours 0 Show time pickers in 24 hours format.
TwelveHours 1 Show time pickers in 12 hours format.

BitVisibility enum

Name Value Description
Visible 0 The content of the component is visible.
Hidden 1 The content of the component is hidden, but the space it takes on the page remains (visibility:hidden).
Collapsed 2 The component is hidden (display:none).

BitDir enum

Name Value Description
Ltr 0 Ltr (left to right) is to be used for languages that are written from the left to the right (like English).
Rtl 1 Rtl (right to left) is to be used for languages that are written from the right to the left (like Arabic).
Auto 2 Auto lets the user agent decide. It uses a basic algorithm as it parses the characters inside the element until it finds a character with a strong directionality, then applies that directionality to the whole element.

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.