Calendar
The calendar control lets people select and view a single date or a range of dates in their calendar. It’s made up of 3 separate views: the month view, year view, and decade view.
Usage
Basic
Basic Calendar configuration showcasing default usage, disabled state, week numbers, highlighted months, and time picker.
Basic Calendar:
Selected date
March 2026
S
M
T
W
T
F
S
Disabled:
Selected date
March 2026
S
M
T
W
T
F
S
Week numbers:
Selected date
March 2026
S
M
T
W
T
F
S
9
10
11
12
13
Highlight months:
Selected date
March 2026
S
M
T
W
T
F
S
StartingValue: December 2020, Time: 20:45:
Selected date
S
M
T
W
T
F
S
:
<BitCalendar /> <BitCalendar IsEnabled="false" /> <BitCalendar ShowWeekNumbers="true" /> <BitCalendar HighlightCurrentMonth="true" HighlightSelectedMonth="true" /> <BitCalendar ShowTimePicker="true" StartingValue="startingValue" />@code { private DateTimeOffset? startingValue = new DateTimeOffset(2020, 12, 4, 20, 45, 0, DateTimeOffset.Now.Offset); }
Min & Max
Demonstrates setting minimum and maximum selectable dates in the calendar.
Min: Now.AddDays(-5)
Max: Now.AddDays(+5)
Selected date
March 2026
S
M
T
W
T
F
S
Min: Now.AddMonths(-2)
Max: Now.AddMonths(+1)
Selected date
March 2026
S
M
T
W
T
F
S
Min: Now.AddYears(-5)
Max: Now.AddYears(+1)
Selected date
March 2026
S
M
T
W
T
F
S
<BitCalendar MinDate="DateTimeOffset.Now.AddDays(-5)" MaxDate="DateTimeOffset.Now.AddDays(5)" />
<BitCalendar MinDate="DateTimeOffset.Now.AddMonths(-2)" MaxDate="DateTimeOffset.Now.AddMonths(1)" />
<BitCalendar MinDate="DateTimeOffset.Now.AddYears(-5)" MaxDate="DateTimeOffset.Now.AddYears(1)" />Hour/Minute step
Customizes the step increments for hours and minutes in the time picker.
HourStep = 2:
Selected date
S
M
T
W
T
F
S
:
MinuteStep = 15:
Selected date
S
M
T
W
T
F
S
:
<BitCalendar ShowTimePicker="true" HourStep="2" />
<BitCalendar ShowTimePicker="true" MinuteStep="15" />Culture
By default, BitCalendar picks the current culture. But you can provide your own instance of CultureInfo for any custom culture.
You also can use our CultureInfoHelper class or check its code to see how to create a custom culture.
You also can use our CultureInfoHelper class or check its code to see how to create a custom culture.
fa-IR culture with Farsi names:
Selected date
فروردین 1405
ش
ی
د
س
چ
پ
ج
fa-IR culture with Fingilish names:
Selected date
Farvardin 1405
S
Y
D
S
C
P
J
<BitCalendar GoToToday="برو به امروز" Culture="CultureInfoHelper.GetFaIrCultureWithFarsiNames()" />
<BitCalendar GoToToday="Boro be emrouz" Culture="CultureInfoHelper.GetFaIrCultureWithFingilishNames()" />TimeZone
Specifies the timezone used to interpret and display the selected date/time.
Remeber using this feature in different runtimes needs more investigations, for example, there are different data available based on the OS the code is running on or different settings enabled for the project (like InvariantTimezone in the project file, more info).
Remeber using this feature in different runtimes needs more investigations, for example, there are different data available based on the OS the code is running on or different settings enabled for the project (like InvariantTimezone in the project file, more info).
Defalt (local TimeZone):
Selected date
S
M
T
W
T
F
S
:
Selected date:
"Dateline Standard Time" TimeZone:
Selected date
S
M
T
W
T
F
S
:
Selected date:
<BitCalendar @bind-Value="@timeZoneDate1" ShowTimePicker /> <div>Selected date: @timeZoneDate1?.ToString()</div> @{ TimeZoneInfo? timeZoneInfo = null; var allTimeZones = TimeZoneInfo.GetSystemTimeZones(); if (allTimeZones.Count > 0) { timeZoneInfo = allTimeZones[0]; } } @if (timeZoneInfo is not null) { <div>"@timeZoneInfo.Id" TimeZone:</div><br/> <BitCalendar TimeZone="timeZoneInfo" @bind-Value="@timeZoneDate2" ShowTimePicker /> <div>Selected date: @timeZoneDate2?.ToString()</div> }@code { private DateTimeOffset? timeZoneDate1; private DateTimeOffset? timeZoneDate2; }
Binding
Illustrates binding the selected date value to a variable.
Selected date 8/19/2023
August 2023
S
M
T
W
T
F
S
Selected date: 8/19/2023 12:00:00 AM +01:00
<BitCalendar @bind-Value="@selectedDate" /> <div>Selected date: @selectedDate.ToString()</div>@code { private DateTimeOffset? selectedDate = new DateTimeOffset(2023, 8, 19, 0, 0, 0, DateTimeOffset.Now.Offset); }
ReadOnly
The ReadOnly parameter makes the date picker input non-editable, preventing users from manually changing the time value.
Selected date 3/28/2026
March 2026
S
M
T
W
T
F
S
Selected date 3/28/2026
S
M
T
W
T
F
S
:
<BitCalendar ReadOnly @bind-Value="readOnlyDate" /> <BitCalendar ReadOnly ShowTimePicker @bind-Value="readOnlyDate" />@code { private DateTimeOffset? readOnlyDate = DateTimeOffset.Now; }
MonthPicker
Demonstrates controlling the visibility and position of the month picker.
IsMonthPickerVisible:
Selected date
March 2026
S
M
T
W
T
F
S
ShowMonthPickerAsOverlay:
Selected date
March 2026
S
M
T
W
T
F
S
<BitCalendar ShowMonthPicker="@showMonthPicker" /> <BitToggleButton OnText="MonthPicker visible" OffText="MonthPicker invisible" @bind-IsChecked="@showMonthPicker" /> <BitCalendar ShowMonthPickerAsOverlay="@showMonthPickerAsOverlay" /> <BitToggleButton OnText="Position Overlay" OffText="Position Besides" @bind-IsChecked="@showMonthPickerAsOverlay" />@code { private bool showMonthPicker = true; private bool showMonthPickerAsOverlay; }
TimePicker
Demonstrates the time picker functionality integrated within the calendar component.
Selected date 3/28/2026
S
M
T
W
T
F
S
:
Selected DateTime: 3/28/2026 8:20:53 PM +01:00
<BitCalendar @bind-Value="@selectedDateTime" ShowTimePicker="true" /> <div>Selected DateTime: @selectedDateTime.ToString()</div>@code { private DateTimeOffset? selectedDateTime = DateTimeOffset.Now; }
Validation
Demonstrates validation for BitCalendar within a form, including required fields and custom validation messages.
<style> .validation-message { color: red; } </style> <EditForm Model="validationModel" OnValidSubmit="HandleValidSubmit" OnInvalidSubmit="HandleInvalidSubmit"> <DataAnnotationsValidator /> <BitCalendar @bind-Value="validationModel.Date" /> <ValidationMessage For="@(() => validationModel.Date)" /> <BitButton ButtonType="BitButtonType.Submit">Submit</BitButton> <BitButton ButtonType="BitButtonType.Reset" Variant="BitVariant.Outline" OnClick="() => { validationModel = new(); SuccessMessage=string.Empty; }"> Reset </BitButton> </EditForm>@code { public class BitCalendarValidationModel { [Required] public DateTimeOffset? Date { get; set; } } private BitCalendarValidationModel validationModel = new(); private void HandleValidSubmit() { } private void HandleInvalidSubmit() { } }
Templates
Use custom templates for day cells, month cells, and year cells.
DayCellTemplate:
Selected date
March 2026
S
M
T
W
T
F
S
MonthCellTemplate:
Selected date
March 2026
S
M
T
W
T
F
S
YearCellTemplate:
Selected date
March 2026
S
M
T
W
T
F
S
<style>
.day-cell {
width: 28px;
height: 28px;
position: relative;
}
.weekend-cell {
color: red;
}
.badge {
top: 2px;
right: 2px;
width: 8px;
height: 8px;
position: absolute;
border-radius: 50%;
background-color: red;
}
.year-suffix {
position: absolute;
bottom: 10px;
right: -12px;
height: 12px;
color: gray;
font-size: 8px;
}
</style>
<BitCalendar>
<DayCellTemplate>
<span class="day-cell@(context.DayOfWeek == DayOfWeek.Sunday ? " weekend-cell" : null)">
@context.Day
@if (context.Day % 5 is 0)
{
<span class="badge"></span>
}
</span>
</DayCellTemplate>
</BitCalendar>
<BitCalendar>
<MonthCellTemplate>
<div style="width:28px;padding:3px;color:black;background:@(context.Month == 1 ? "lightcoral" : "yellowgreen")">
@Culture.DateTimeFormat.GetAbbreviatedMonthName(context.Month)
</div>
</MonthCellTemplate>
</BitCalendar>
<BitCalendar>
<YearCellTemplate>
<span style="position: relative">
@context
<span class="year-suffix">AC</span>
</span>
</YearCellTemplate>
</BitCalendar>External Icons
Use icons from external libraries like FontAwesome and Bootstrap Icons with the GoToTodayIcon, GoToNowIcon, PrevMonthNavIcon, NextMonthNavIcon, and other icon parameters.
For built-in icons use the IconName variant of each parameter (e.g. GoToTodayIconName).
The Icon parameters accept a BitIconInfo value, created via helpers like BitIconInfo.Fa(...), BitIconInfo.Bi(...), or BitIconInfo.Css(...).
For built-in icons use the IconName variant of each parameter (e.g. GoToTodayIconName).
The Icon parameters accept a BitIconInfo value, created via helpers like BitIconInfo.Fa(...), BitIconInfo.Bi(...), or BitIconInfo.Css(...).
FontAwesome icons:
Selected date
March 2026
S
M
T
W
T
F
S
Bootstrap icons (with ShowTimePicker):
Selected date
S
M
T
W
T
F
S
:
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css" />
<BitCalendar GoToTodayIcon="@BitIconInfo.Fa("solid calendar-day")"
PrevMonthNavIcon="@BitIconInfo.Fa("solid chevron-left")"
NextMonthNavIcon="@BitIconInfo.Fa("solid chevron-right")" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" />
<BitCalendar ShowTimePicker="true"
GoToTodayIcon="@BitIconInfo.Bi("calendar-check")"
GoToNowIcon="@BitIconInfo.Bi("clock")"
PrevMonthNavIcon="@BitIconInfo.Bi("chevron-left")"
NextMonthNavIcon="@BitIconInfo.Bi("chevron-right")"
TimePickerIncreaseHourIcon="@BitIconInfo.Bi("chevron-up")"
TimePickerDecreaseHourIcon="@BitIconInfo.Bi("chevron-down")"
TimePickerIncreaseMinuteIcon="@BitIconInfo.Bi("chevron-up")"
TimePickerDecreaseMinuteIcon="@BitIconInfo.Bi("chevron-down")" />Style & Class
Showcases custom styling and class usage for the calendar component.
Component's Style & Class:
Selected date
March 2026
S
M
T
W
T
F
S
Selected date
March 2026
S
M
T
W
T
F
S
Styles & Classes:
Selected date
S
M
T
W
T
F
S
:
Selected date
March 2026
S
M
T
W
T
F
S
<style>
.custom-class {
margin: 1rem;
background: #8a2be270;
border-radius: 1rem;
box-shadow: blueviolet 0 0 1rem;
}
.custom-root {
margin: 1rem;
border-radius: 0.5rem;
background-color: #211e1b;
}
.custom-day-picker {
border: 1px solid #e9981e;
background-color: #211e1b;
border-end-start-radius: 0.5rem;
border-start-start-radius: 0.5rem;
}
.custom-day-month,
.custom-next-month,
.custom-prev-month {
color: white;
}
.custom-day {
color: #e9981e;
margin: 0.15rem;
border-radius: 50%;
border: 1px solid #e9981e;
}
.custom-today-day {
color: #211e1b;
background-color: #e9981e;
}
.custom-week-header {
color: white;
margin: 0.15rem;
}
.custom-day-header {
height: 2rem;
color: white;
margin: 0.15rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid #e9981e;
}
.custom-year-picker {
border: 1px solid #211e1b;
background-color: #e9981e;
border-end-end-radius: 0.5rem;
border-start-end-radius: 0.5rem;
}
</style>
<BitCalendar Style="margin: 1rem; border-radius: 1rem; background: #a5104457;" />
<BitCalendar Class="custom-class" />
<BitCalendar ShowTimePicker="true"
Styles="@(new() { Root = "margin: 1rem; border: 1px solid mediumseagreen; background: #1c73324d;",
Divider = "border-color: mediumseagreen;",
DayPickerMonth = "color: darkgreen;",
TodayDayButton = "background-color: green;",
SelectedDayButton = "background-color: limegreen;",
TimePickerIncreaseHourButton = "background-color: limegreen;",
TimePickerIncreaseMinuteButton = "background-color: limegreen;",
TimePickerDecreaseHourButton = "background-color: limegreen;",
TimePickerDecreaseMinuteButton = "background-color: limegreen;" })" />
<BitCalendar Classes="@(new() { Root = "custom-root",
DayPickerWrapper = "custom-day-picker",
DayButton = "custom-day",
TodayDayButton = "custom-today-day",
PrevMonthNavButton = "custom-prev-month",
NextMonthNavButton = "custom-next-month",
DayPickerMonth = "custom-day-month",
DayPickerHeader = "custom-day-header",
WeekNumbersHeader = "custom-week-header",
YearMonthPickerWrapper = "custom-year-picker" })" />RTL
Use BitCalendar in right-to-left (RTL).
Selected date
March 2026
S
M
T
W
T
F
S
<BitCalendar Dir="BitDir.Rtl" />API
BitCalendar parameters
Name |
Type |
Default value |
Description |
|---|---|---|---|
| Classes | BitCalendarClassStyles | null | Custom CSS classes for different parts of the BitCalendar. |
| Culture | CultureInfo | System.Globalization.CultureInfo.CurrentUICulture | CultureInfo for the Calendar. |
| DateFormat | string? | null | The format of the date in the Calendar. |
| DayCellTemplate | RenderFragment<DateTimeOffset>? | null | Used to customize how content inside the day cell is rendered. |
| 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). |
| GoToNowIcon | BitIconInfo? | null | Gets or sets the icon to display in the GoToNow button using custom CSS classes for external icon libraries. Takes precedence over GoToNowIconName when both are set. |
| GoToNowIconName | string? | null | Gets or sets the name of the icon to display in the GoToNow button from the built-in Fluent UI icons. |
| GoToNowTitle | string | Go to now | The title of the GoToNow 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 | 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 of the GoToToday button (tooltip). |
| 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 of the HideTimePicker button (tooltip). |
| HighlightCurrentMonth | bool | false | Whether the month picker should highlight the current month. |
| HighlightSelectedMonth | bool | false | Whether the month picker should highlight the selected month. |
| HourStep | int | 1 | Determines increment/decrement steps for calendar's hour. |
| InvalidErrorMessage | string? | null | The custom validation error message for the invalid value. |
| MaxDate | DateTimeOffset | null | The maximum allowable date of the calendar. |
| MinDate | DateTimeOffset? | null | The minimum allowable date of the calendar. |
| MinuteStep | int | 1 | Determines increment/decrement steps for calendar's minute. |
| MonthCellTemplate | RenderFragment<DateTimeOffset>? | null | Used to customize how content inside the month cell is rendered. |
| MonthPickerToggleTitle | string | {0}, change month | The title of the month picker's toggle (tooltip). |
| 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. |
| OnSelectDate | EventCallback<DateTimeOffset?> | Callback for when the user selects a date. | |
| 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 text of selected date aria-atomic of the calendar. |
| ShowGoToNow | bool | true | Whether the GoToNow button should be shown or not. |
| ShowGoToToday | bool | true | Whether the GoToToday button should be shown or not. |
| ShowMonthPicker | bool | true | Whether the month picker is shown or hidden. |
| ShowMonthPickerAsOverlay | bool | false | Show month picker on top of date picker when visible. |
| ShowTimePicker | bool | false | Whether the time picker should be shown or not. |
| 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 of the ShowTimePicker button (tooltip). |
| ShowWeekNumbers | bool | false | Whether the week number (weeks 1 to 53) should be shown before each week row. |
| StartingValue | DateTimeOffset? | null | Specifies the date and time of the calendar when it is showing without any selected 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| TimeZone | TimeZoneInfo? | null | TimeZone for the BitCalendar. |
| WeekNumberTitle | string | Week number {0} | The title of the week number (tooltip). |
| YearCellTemplate | RenderFragment<int>? | null | Used to customize how content inside the year cell is rendered. |
| 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 |
|---|---|---|---|
| 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. |
| 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. |
| Id | string? | null | Gets or sets the unique identifier for the component's root element. |
| IsEnabled | bool | true | Gets or sets a value indicating whether the component is enabled and can respond to user interaction. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| TimePickerContainer | string? | null | Custom CSS classes/styles for the time-picker's main 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. |
| 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. |
| YearPickerToggleButton | string? | null | Custom CSS classes/styles for the year-picker's toggle button of the BitCalendar. |
| MonthPickerNavWrapper | string? | null | Custom CSS classes/styles for the wrapper of the month-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. |
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. |
BitVisibility enum
Name |
Value |
Description |
|---|---|---|
| Visible | 0 | Show content of the component. |
| Hidden | 1 | Hide content of the component,though the space it takes on the page remains. |
| Collapsed | 2 | Hide content of the component,though the space it takes on the page gone. |
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
You can give us your feedback through our GitHub repo by filing a new Issue or starting a new Discussion.
Or you can review / edit this page on GitHub.
Or you can review / edit this component on GitHub.
- On this page