Skip to content

Inputs

Calendar

Bit.BlazorUI

BitCalendar is a fully-featured inline calendar for browsing and selecting a single date, or a date and time when the built-in time picker is enabled. It offers day, month and year grids, day events with details, and flexible day/week rules such as disabled and highlighted dates, a custom first day of week and week numbers. It works with any culture and time zone, including right-to-left and non-Gregorian calendars, and every grid follows the WAI-ARIA grid pattern for the keyboard.

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.

BitCalendar CSS variables

Name Default value Description
--bit-Calendar-background transparent Background behind the whole calendar, including the area around the pickers.
--bit-Calendar-radius --bit-shp-radius-control Corner radius of the calendar, which the overlay of the event details dialog follows.
--bit-Calendar-padding 8px * 1.5 (the spacing unit) Padding of each picker pane - the day grid, the month and year grids, the time picker - and of the HeaderTemplate and FooterTemplate wrappers.
--bit-Calendar-color --bit-clr-fg-pri Text color of the cells, the headers and the navigation buttons. The selected day, today and a disabled cell paint their own through the variables below.
--bit-Calendar-divider-color --bit-clr-brd-sec Color of the rule between the panes, of the one beside the week numbers, and of the borders inside the event details dialog.
--bit-Calendar-focus-color --bit-clr-pri-focus Color of the keyboard focus ring drawn around every cell and button of the calendar. The Color parameter wins over it, and so does an invalid value, which draws the ring in --bit-clr-err-focus. 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-Calendar-disabled-color --bit-clr-fg-dis Text color of a disabled cell, and of every part of a calendar whose Disabled is true.
--bit-Calendar-hover-background --bit-clr-bg-pri-hover Background of a cell or button on hover (pointer devices only).
--bit-Calendar-active-background --bit-clr-bg-pri-active Background of a cell or button while pressed.
--bit-Calendar-day-size 8px * 3.5 (the spacing unit) Width and height of a day cell. The week numbers, the weekday headers, the empty cells and the navigation buttons all take it, so the whole day grid stays in step. The Size parameter wins over it.
--bit-Calendar-day-font-size --bit-tpg-fs-sm Text size of the day cells and of the headers and week numbers that line up with them. The Size parameter wins over it.
--bit-Calendar-day-radius --bit-shp-radius-control Corner radius of a day cell, which the month, year, navigation and time-picker buttons share. Set it to 999px for round days.
--bit-Calendar-outside-day-color --bit-clr-fg-sec Text color of a day of the previous or next month while ShowOutsideDays is on.
--bit-Calendar-selected-background --bit-clr-bg-sec Background of the selected day, and of the displayed month while HighlightSelectedMonth is on.
--bit-Calendar-selected-color --bit-Calendar-color Text color of the selected day, for a filled selection that needs its own contrast.
--bit-Calendar-selected-border-color --bit-clr-brd-pri Color of the ring drawn around the selected day. Set it to transparent for a selection carried by its background alone.
--bit-Calendar-today-background --bit-clr-pri Background of today, of the current month while HighlightCurrentMonth is on, and of the AM/PM button that is in force. The Color parameter wins over it.
--bit-Calendar-today-color --bit-clr-pri-text Text color of today, of the highlighted current month and of the AM/PM button that is in force. The Color parameter wins over it.
--bit-Calendar-today-hover-background --bit-clr-pri-hover Background of today on hover (pointer devices only), which the highlighted current month and the AM/PM button that is in force share. Set it alongside --bit-Calendar-today-background so the hover does not fall back to the primary color. The Color parameter wins over it.
--bit-Calendar-today-active-background --bit-clr-pri-active Background of today while pressed, which the AM/PM button that is in force shares. The Color parameter wins over it.
--bit-Calendar-today-radius --bit-shp-radius-full Corner radius of today, which is a circle by default.
--bit-Calendar-highlighted-background --bit-clr-bg-ter Background of a day listed in HighlightedDates.
--bit-Calendar-week-number-color --bit-clr-fg-sec Text color of a week number.
--bit-Calendar-week-number-background --bit-clr-bg-sec Background of the week-number column.
--bit-Calendar-event-color --bit-clr-pri Color of an indicator dot whose event named no Color of its own. On today it falls to the on-color instead, which is what reads against the cell. The Color parameter wins over it; an event's own Color wins over both.
--bit-Calendar-event-size 8px * 0.5 (the spacing unit) Diameter of each indicator dot on a day that carries events.
--bit-Calendar-event-gap 8px * 0.25 (the spacing unit) Space between the dots of a day that carries more than one event.

API

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

BitCalendar parameters

Name Type Default value Description
AllowDeselect bool false Whether selecting the already selected day deselects it, clearing the value. The calendar stays on the month the day was deselected in.
Classes BitCalendarClassStyles null Custom CSS classes for different parts of the BitCalendar.
Color BitColor? null The general color of the calendar that applies to the today day button, the highlighted current month, the selected AM/PM button, and the event indicators. An explicit value wins over the --bit-Calendar-* today, focus and event color variables; left unset, the calendar 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 System.Globalization.CultureInfo.CurrentUICulture The culture the calendar reads its month and day names, first day of the week, date format, AM/PM designators, calendar system and right-to-left direction from. Defaults to CultureInfo.CurrentUICulture. It does not translate the *Title texts.
DateFormat string? null The format the selected date is written in as text: the value's text form in a form (and the format such a text is parsed with), the screen-reader announcement of a selection and the heading of the event details dialog. Defaults to the short date pattern of the Culture.
DayCellTemplate RenderFragment<DateTimeOffset>? null Used to customize how content inside the day cell is rendered. The context is the day at midnight in the TimeZone; the cell stays the calendar's button, with its states, its event dots and its accessible name (the full date).
DisabledDates IEnumerable<DateTimeOffset>? null The list of dates that are disabled (not selectable) in the calendar, in addition to MinDate and MaxDate. Compared by day in the TimeZone; the time of day is ignored.
DisabledDaysOfWeek IEnumerable<DayOfWeek>? null The days of the week that are disabled (not selectable) in the calendar (e.g. weekends).
DisableFuture bool false Disables every day after today, exactly as a MaxDate of now would. When both are set, the earlier of the two bounds wins. Today stays selectable, and a time picker on screen is held to the hours of it up to this very minute.
DisablePast bool false Disables every day before today, exactly as a MinDate of now would. When both are set, the later of the two bounds wins. Today stays selectable, and a time picker on screen is held to the hours of it from this very minute on.
EventDetailsCloseButtonTitle string Close The title (tooltip) and the accessible name of the close button of the event details dialog.
Events IEnumerable<BitCalendarEvent>? null The list of events to display on calendar days. Days with events show an indicator dot that reveals a tooltip on hover and a details dialog on click. The events of a day are ordered the way an agenda of it is: the all-day ones first, then the rest by the time they start at.
EventTemplate RenderFragment<BitCalendarEvent>? null Used to customize how an event is rendered in the details dialog, in place of its title, its time and its body - the place for a link to whatever the event stands for in the application.
EventTimeFromText string From The text shown before the start time of an event when only a start time is present (e.g. "From 09:00"). Supports localization.
EventTimeUntilText string Until The text shown before the end time of an event when only an end time is present (e.g. "Until 17:00"). Supports localization.
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.
FooterTemplate RenderFragment? null Rendered under the pickers, inside the root of the calendar: the place for the actions a calendar is often given of its own, such as a Clear button or a summary of the selection.
GetDayClass Func<DateTimeOffset, string?>? null Custom function to provide additional CSS classes for each day button of the calendar. Called with the day at midnight in the TimeZone, for every day drawn on every render.
GoToNextMonthTitle string Go to next month The title (tooltip) and the accessible name of the Go to next month button.
GoToNextYearRangeTitle string Next year range {0} - {1} The title (tooltip) and the accessible name of the Go to next year range button, where {0} and {1} are the first and last years of the next range.
GoToNextYearTitle string Go to next year {0} The title (tooltip) and the accessible name of the Go to next year button of the month picker, where {0} is the next year.
GoToPrevMonthTitle string Go to previous month The title (tooltip) and the accessible name of the Go to previous month button.
GoToPrevYearRangeTitle string Previous year range {0} - {1} The title (tooltip) and the accessible name of the Go to previous year range button, where {0} and {1} are the first and last years of the previous range.
GoToPrevYearTitle string Go to previous year {0} The title (tooltip) and the accessible name of the Go to previous year button of the month picker, where {0} is the previous year.
GoToTodayIcon BitIconInfo? null Gets or sets the icon to display in the GoToToday button using custom CSS classes for external icon libraries. Takes precedence over GoToTodayIconName when both are set.
GoToTodayIconName string? null Gets or sets the name of the icon to display in the GoToToday button from the built-in Fluent UI icons.
GoToTodayTitle string Go to today The title (tooltip) and the accessible name of the GoToToday button.
HeaderTemplate RenderFragment? null Rendered above the pickers, inside the root of the calendar: the place for a caption or a legend of its own, before the day, month and year grids.
HideTimePickerIcon BitIconInfo? null Gets or sets the icon to display in the HideTimePicker button using custom CSS classes for external icon libraries. Takes precedence over HideTimePickerIconName when both are set.
HideTimePickerIconName string? null Gets or sets the name of the icon to display in the HideTimePicker button from the built-in Fluent UI icons.
HideTimePickerTitle string Hide time picker The title (tooltip) and the accessible name of the button that closes the overlay time picker.
HighlightCurrentMonth bool false Whether the month picker should highlight the month of today (or of Today) while its year is on screen, painted with the Color.
HighlightedDates IEnumerable<DateTimeOffset>? null The list of dates that are highlighted (marked) in the day picker, without disabling them. Compared by day in the TimeZone; the time of day is ignored.
HighlightSelectedMonth bool false Whether the month picker should highlight the month on screen (the displayed month, not the month of the value).
HighlightToday bool true Whether the day picker should highlight today's day. It only affects the visual style of the day cell; the accessibility attributes still report the day as the current date.
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 picker produces sits on. The buttons, the keys and what is typed into the hour are all held to it.
InvalidErrorMessage string? null The custom validation error message for a value given as text that cannot be parsed with the DateFormat, in place of "The {field} field is not valid.".
IsDateDisabled Func<DateTimeOffset, bool>? null Custom function to determine if a specific date is disabled (not selectable) in the calendar. Called with the day at midnight in the TimeZone, for every day drawn on every render.
MaxDate DateTimeOffset? null The maximum allowable date of the calendar. The days after it are ruled out as a whole, and the day it itself falls on stays selectable; where a time picker is on screen, the time the bound carries bounds the hours of that day too.
MinDate DateTimeOffset? null The minimum allowable date of the calendar. The days before it are ruled out as a whole, and the day it itself falls on stays selectable; where a time picker is on screen, the time the bound carries bounds the hours of that day too.
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 picker produces sits on - which is what turns it into a five-minute or quarter-hour picker. The buttons, the keys and what is typed into the minute are all held to it.
MonthCellTemplate RenderFragment<DateTimeOffset>? null Used to customize how content inside the month cell is rendered. The context is the first day of the month in the year on screen; the cell is named by the text the template shows, with the full month name as its title.
MonthCount int 1 The number of consecutive months rendered side by side in the day picker (1 to 3), which turns the calendar into a view of a whole season - the arrow keys, the selection and the events carry on across the months of it. More than one month always renders six week rows and never the days of the adjacent months, and the months stack instead of overflowing when the width they are given cannot fit them.
MonthPickerToggleTitle string {0}, change month The title (tooltip) and the accessible name of the month title button that opens the month picker when it is an overlay, where {0} is the month title.
NextMonthNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to next month button using custom CSS classes for external icon libraries. Takes precedence over NextMonthNavIconName when both are set.
NextMonthNavIconName string? null Gets or sets the name of the icon to display in the Go to next month button from the built-in Fluent UI icons.
NextYearNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to next year button using custom CSS classes for external icon libraries. Takes precedence over NextYearNavIconName when both are set.
NextYearNavIconName string? null Gets or sets the name of the icon to display in the Go to next year button from the built-in Fluent UI icons.
NextYearRangeNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to next year range button using custom CSS classes for external icon libraries. Takes precedence over NextYearRangeNavIconName when both are set.
NextYearRangeNavIconName string? null Gets or sets the name of the icon to display in the Go to next year range button from the built-in Fluent UI icons.
NowButtonIcon BitIconInfo? null Gets or sets the icon to display in the now button using custom CSS classes for external icon libraries. Takes precedence over NowButtonIconName when both are set.
NowButtonIconName string? null Gets or sets the name of the icon to display in the now button from the built-in Fluent UI icons.
NowButtonTitle string Go to now The title (tooltip) and the accessible name of the now button.
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.
OnSelectDate EventCallback<DateTimeOffset?> Callback for when the user selects a date, with the new value - null when AllowDeselect clears it. It is not raised for a value set from code.
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.
PrevMonthNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to previous month button using custom CSS classes for external icon libraries. Takes precedence over PrevMonthNavIconName when both are set.
PrevMonthNavIconName string? null Gets or sets the name of the icon to display in the Go to previous month button from the built-in Fluent UI icons.
PrevYearNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to previous year button using custom CSS classes for external icon libraries. Takes precedence over PrevYearNavIconName when both are set.
PrevYearNavIconName string? null Gets or sets the name of the icon to display in the Go to previous year button from the built-in Fluent UI icons.
PrevYearRangeNavIcon BitIconInfo? null Gets or sets the icon to display in the Go to previous year range button using custom CSS classes for external icon libraries. Takes precedence over PrevYearRangeNavIconName when both are set.
PrevYearRangeNavIconName string? null Gets or sets the name of the icon to display in the Go to previous year range button from the built-in Fluent UI icons.
SelectedDateAriaAtomic string Selected date {0} The template of the text a screen reader is given when the selection changes, where {0} is the selected date written with the DateFormat. Nothing is announced while no date is selected.
ShowEventDetails bool true Whether clicking a day that carries events opens the modal dialog listing them. The day is selected either way; turning this off leaves the events to the indicator, the tooltip and whatever the page itself shows for the selected day.
ShowGoToToday bool true Whether the GoToToday button should be shown or not. The button only brings the view back to the month of today; it never selects a day.
ShowMonthPicker bool true Whether the month picker is shown or hidden. Hidden, the arrows are the only way to change the month.
ShowMonthPickerAsOverlay bool false Whether the month picker is laid over the day grid, opened from the month title, instead of being shown beside it.
ShowNowButton bool true Whether the now button of the time picker should be shown or not. The button sets the hour and minute to now, kept inside the bounds, without changing the day.
ShowOutsideDays bool true Whether the days of the previous and next months should be shown in the day picker. 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 the time picker should be shown or not. Beside the day grid it takes the place of the month picker, which then opens from the month title. With no value it only holds the time the next picked day takes.
ShowTimePickerAsOverlay bool false Whether the time picker is laid over the day grid, opened from a clock button, instead of being shown beside it.
ShowTimePickerIcon BitIconInfo? null Gets or sets the icon to display in the ShowTimePicker button using custom CSS classes for external icon libraries. Takes precedence over ShowTimePickerIconName when both are set.
ShowTimePickerIconName string? null Gets or sets the name of the icon to display in the ShowTimePicker button from the built-in Fluent UI icons.
ShowTimePickerTitle string Show time picker The title (tooltip) and the accessible name of the clock button that opens the overlay time picker.
ShowWeekNumbers bool false Whether the week number (weeks 1 to 53) should be shown before each week row.
Size BitSize? null The size of the calendar, which scales its cells and their text. An explicit value wins over the --bit-Calendar-day-size and --bit-Calendar-day-font-size variables; left unset, the calendar is medium unless they say otherwise.
StartingValue DateTimeOffset? null Specifies the date and time of the calendar when it is showing without any selected value: the month it opens on and the time the time picker starts from. It never sets the value.
Styles BitCalendarClassStyles null Custom CSS styles for different parts of the BitCalendar.
TimeFormat BitTimeFormat BitTimeFormat.TwentyFourHours The time format of the time-picker, 24H or 12H. TwelveHours adds an AM/PM pair written with the designators of the Culture; the value is the same either way.
TimePickerDecreaseHourIcon BitIconInfo? null Gets or sets the icon to display in the decrease-hour button using custom CSS classes for external icon libraries. Takes precedence over TimePickerDecreaseHourIconName when both are set.
TimePickerDecreaseHourIconName string? null Gets or sets the name of the icon to display in the decrease-hour button from the built-in Fluent UI icons.
TimePickerDecreaseHourTitle string Decrease hour The title (tooltip) and the accessible name of the time-picker's decrease-hour button.
TimePickerDecreaseMinuteIcon BitIconInfo? null Gets or sets the icon to display in the decrease-minute button using custom CSS classes for external icon libraries. Takes precedence over TimePickerDecreaseMinuteIconName when both are set.
TimePickerDecreaseMinuteIconName string? null Gets or sets the name of the icon to display in the decrease-minute button from the built-in Fluent UI icons.
TimePickerDecreaseMinuteTitle string Decrease minute The title (tooltip) and the accessible name of the time-picker's decrease-minute button.
TimePickerHourTitle string Hour The title (tooltip) and the accessible name of the time-picker's hour input.
TimePickerIncreaseHourIcon BitIconInfo? null Gets or sets the icon to display in the increase-hour button using custom CSS classes for external icon libraries. Takes precedence over TimePickerIncreaseHourIconName when both are set.
TimePickerIncreaseHourIconName string? null Gets or sets the name of the icon to display in the increase-hour button from the built-in Fluent UI icons.
TimePickerIncreaseHourTitle string Increase hour The title (tooltip) and the accessible name of the time-picker's increase-hour button.
TimePickerIncreaseMinuteIcon BitIconInfo? null Gets or sets the icon to display in the increase-minute button using custom CSS classes for external icon libraries. Takes precedence over TimePickerIncreaseMinuteIconName when both are set.
TimePickerIncreaseMinuteIconName string? null Gets or sets the name of the icon to display in the increase-minute button from the built-in Fluent UI icons.
TimePickerIncreaseMinuteTitle string Increase minute The title (tooltip) and the accessible name of the time-picker's increase-minute button.
TimePickerMinuteTitle string Minute The title (tooltip) and the accessible name of the time-picker's minute input.
TimeZone TimeZoneInfo? null The time zone the days, today, the bounds and the time picker are read in, and a picked value is written in (with the zone's offset on that day). Defaults to TimeZoneInfo.Local, which is the server's zone in an app rendered on the server.
Today DateTimeOffset? null Overrides the current date and time considered as "today" and "now" in the calendar (useful for testing or custom time providers). A calendar with no value opens on the month of it; a later change moves the day highlighted as today without paging the calendar away from the month on screen.
WeekNumberRule CalendarWeekRule? null The rule used to calculate the week numbers shown by ShowWeekNumbers, with the culture's calendar and the first day of the week. Defaults to the FirstFullWeek rule.
WeekNumbersHeaderTitle string Week The accessible name of the column header above the week numbers, which shows a number sign (#).
WeekNumberTitle string Week number {0} The title (tooltip) and the accessible name of each week number, where {0} is the number.
YearCellTemplate RenderFragment<int>? null Used to customize how content inside the year cell is rendered. The context is the year number in the culture's calendar.
YearPickerToggleTitle string {0}, change year The title (tooltip) and the accessible name of the year title button of the month picker that opens the year grid, where {0} is the year.
YearRangePickerToggleTitle string {0} - {1}, change month The title (tooltip) and the accessible name of the range title button of the year grid, which goes back to the month grid, where {0} and {1} are the first and last years of the range.

BitCalendar public members

Name Type Default value Description
FocusAsync ValueTask Gives focus to the calendar: the day of the day grid that is in the tab sequence, or the month, the year or the hour input when the day grid is not the picker on screen.

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.

BitCalendarClassStyles properties

Name Type Default value Description
Root string? null Custom CSS classes/styles for the root element of the BitCalendar.
Container string? null Custom CSS classes/styles for the main container of the BitCalendar.
Header string? null Custom CSS classes/styles for the wrapper of the HeaderTemplate of the BitCalendar.
Footer string? null Custom CSS classes/styles for the wrapper of the FooterTemplate of the BitCalendar.
DayPickerWrapper string? null Custom CSS classes/styles for the day-picker's wrapper of the BitCalendar.
DayPickerHeader string? null Custom CSS classes/styles for the day-picker's header of the BitCalendar.
DayPickerMonth string? null Custom CSS classes/styles for the day-picker's month of the BitCalendar.
DayPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the day-picker's nav buttons of the BitCalendar.
PrevMonthNavButton string? null Custom CSS classes/styles for the Go to previous month button of the BitCalendar.
PrevMonthNavIcon string? null Custom CSS classes/styles for the Go to previous month icon of the BitCalendar.
GoToTodayButton string? null Custom CSS classes/styles for the Go to today button of the BitCalendar.
GoToTodayIcon string? null Custom CSS classes/styles for the Go to today icon of the BitCalendar.
NowButton string? null Custom CSS classes/styles for the Go to now button of the BitCalendar.
NowButtonIcon string? null Custom CSS classes/styles for the Go to now icon of the BitCalendar.
HideTimePickerButton string? null Custom CSS classes/styles for the hide time-picker button of the BitCalendar.
HideTimePickerIcon string? null Custom CSS classes/styles for the hide time-picker icon of the BitCalendar.
NextMonthNavButton string? null Custom CSS classes/styles for the Go to next month button of the BitCalendar.
NextMonthNavIcon string? null Custom CSS classes/styles for the Go to next month icon of the BitCalendar.
DaysGrid string? null Custom CSS classes/styles for the days' grid of the BitCalendar.
DaysHeaderRow string? null Custom CSS classes/styles for the header row of the days of the BitCalendar.
WeekNumbersHeader string? null Custom CSS classes/styles for the header of the week numbers of the BitCalendar.
DayNameHeader string? null Custom CSS classes/styles for the weekday-name headers of the BitCalendar.
DaysRow string? null Custom CSS classes/styles for each row of the days of the BitCalendar.
WeekNumber string? null Custom CSS classes/styles for the week number of the BitCalendar.
DayButton string? null Custom CSS classes/styles for each day button of the BitCalendar.
TodayDayButton string? null Custom CSS classes/styles for today day button of the BitCalendar.
SelectedDayButton string? null Custom CSS classes/styles for selected day button of the BitCalendar.
HighlightedDayButton string? null Custom CSS classes/styles for highlighted day buttons of the BitCalendar.
TimeInputContainer string? null Custom CSS classes/styles for the time-picker's input container of the BitCalendar.
HourInputContainer string? null Custom CSS classes/styles for the time-picker's hour input container of the BitCalendar.
MinuteInputContainer string? null Custom CSS classes/styles for the time-picker's minute input container of the BitCalendar.
TimePickerWrapper string? null Custom CSS classes/styles for the time-picker's wrapper of the BitCalendar.
TimePickerHourInput string? null Custom CSS classes/styles for the time-picker's hour input of the BitCalendar.
TimePickerHourMinuteSeparator string? null Custom CSS classes/styles for the time-picker's hour/minute separator of the BitCalendar.
TimePickerMinuteInput string? null Custom CSS classes/styles for the time-picker's minute input of the BitCalendar.
TimePickerIncreaseHourButton string? null Custom CSS classes/styles for the time-picker's increase hour button of the BitCalendar.
TimePickerIncreaseHourIcon string? null Custom CSS classes/styles for the time-picker's increase hour icon of the BitCalendar.
TimePickerDecreaseHourButton string? null Custom CSS classes/styles for the time-picker's decrease hour button of the BitCalendar.
TimePickerDecreaseHourIcon string? null Custom CSS classes/styles for the time-picker's decrease hour icon of the BitCalendar.
TimePickerIncreaseMinuteButton string? null Custom CSS classes/styles for the time-picker's increase minute button of the BitCalendar.
TimePickerIncreaseMinuteIcon string? null Custom CSS classes/styles for the time-picker's increase minute icon of the BitCalendar.
TimePickerDecreaseMinuteButton string? null Custom CSS classes/styles for the time-picker's decrease minute button of the BitCalendar.
TimePickerDecreaseMinuteIcon string? null Custom CSS classes/styles for the time-picker's decrease minute icon of the BitCalendar.
TimePickerAmPmContainer string? null Custom CSS classes/styles for the time-picker's Am Pm container of the BitCalendar.
TimePickerAmButton string? null Custom CSS classes/styles for the time-picker's Am button of the BitCalendar.
TimePickerPmButton string? null Custom CSS classes/styles for the time-picker's Pm button of the BitCalendar.
Divider string? null Custom CSS classes/styles for the main divider of the BitCalendar.
YearMonthPickerWrapper string? null Custom CSS classes/styles for the year-month-picker's wrapper of the BitCalendar.
MonthPickerHeader string? null Custom CSS classes/styles for the month-picker's header of the BitCalendar.
TimePickerHeader string? null Custom CSS classes/styles for the time-picker's header of the BitCalendar.
YearPickerToggleButton string? null Custom CSS classes/styles for the year-picker's toggle button of the BitCalendar.
ShowTimePickerButton string? null Custom CSS classes/styles for the show time-picker button of the BitCalendar.
ShowTimePickerIcon string? null Custom CSS classes/styles for the show time-picker icon of the BitCalendar.
MonthPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the month-picker's nav buttons of the BitCalendar.
TimePickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the time-picker's nav buttons of the BitCalendar.
PrevYearNavButton string? null Custom CSS classes/styles for the Go to previous year button of the BitCalendar.
PrevYearNavIcon string? null Custom CSS classes/styles for the Go to previous year icon of the BitCalendar.
NextYearNavButton string? null Custom CSS classes/styles for the Go to next year button of the BitCalendar.
NextYearNavIcon string? null Custom CSS classes/styles for the Go to next year icon of the BitCalendar.
MonthsRow string? null Custom CSS classes/styles for each row of the months of the BitCalendar.
MonthButton string? null Custom CSS classes/styles for each month button of the BitCalendar.
YearPickerHeader string? null Custom CSS classes/styles for the year-picker's header of the BitCalendar.
MonthPickerToggleButton string? null Custom CSS classes/styles for the month-picker's toggle button of the BitCalendar.
YearPickerNavWrapper string? null Custom CSS classes/styles for the wrapper of the year-picker nav buttons of the BitCalendar.
PrevYearRangeNavButton string? null Custom CSS classes/styles for the Go to previous year-range button of the BitCalendar.
PrevYearRangeNavIcon string? null Custom CSS classes/styles for the Go to previous year-range icon of the BitCalendar.
NextYearRangeNavButton string? null Custom CSS classes/styles for the Go to next year-range button of the BitCalendar.
NextYearRangeNavIcon string? null Custom CSS classes/styles for the Go to next year-range icon of the BitCalendar.
YearsRow string? null Custom CSS classes/styles for each row of the years of the BitCalendar.
YearButton string? null Custom CSS classes/styles for each year button of the BitCalendar.
EventIndicators string? null Custom CSS classes/styles for the row of event indicator dots on a day of the BitCalendar.
EventIndicator string? null Custom CSS classes/styles for each event indicator dot of the BitCalendar.
EventModalOverlay string? null Custom CSS classes/styles for the event modal overlay of the BitCalendar.
EventModalContainer string? null Custom CSS classes/styles for the event modal container of the BitCalendar.
EventModalHeader string? null Custom CSS classes/styles for the event modal header of the BitCalendar.
EventModalCloseButton string? null Custom CSS classes/styles for the event modal close button of the BitCalendar.
EventList string? null Custom CSS classes/styles for the list of events in the event modal of the BitCalendar.
EventItem string? null Custom CSS classes/styles for each event item in the event modal of the BitCalendar.
EventItemTitle string? null Custom CSS classes/styles for the event item title in the event modal of the BitCalendar.
EventItemTime string? null Custom CSS classes/styles for the event item time range in the event modal of the BitCalendar.
EventItemBody string? null Custom CSS classes/styles for the event item body in the event modal of the BitCalendar.

BitCalendarEvent properties

Name Type Default value Description
Title string The title of the event.
Body string The full body/description text of the event.
Date DateOnly default The date on which the event occurs.
Color BitColor? null The color of the indicator dot the event puts on its day. Without one the dot takes the color of the calendar itself.
StartTime TimeOnly? null The optional start time of the event.
EndTime TimeOnly? null The optional end time of the event.

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.

BitTimeFormat enum

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

BitSize enum

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

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.