| Name |
Type |
Default value |
Description |
|---|
| AriaDescription |
string? |
null |
Detailed description of the checkbox for the benefit of screen readers, rendered as a visually hidden element that the checkbox input points to via aria-describedby. |
| AriaLabelledby |
string? |
null |
ID for element that contains label information for the checkbox. |
| AriaPositionInSet |
int? |
null |
The position in the parent set (if in a set) for aria-posinset. |
| AriaSetSize |
int? |
null |
The total size of the parent set (if in a set) for aria-setsize. |
| AutoFocus |
bool |
false |
If true, the checkbox input automatically receives focus when the page renders. |
| CheckIcon |
BitIconInfo? |
null |
The check icon using custom CSS classes for external icon libraries. Takes precedence over CheckIconName when both are set. Use BitIconInfo.Bi(), BitIconInfo.Fa(), or BitIconInfo.Css() for Bootstrap Icons, FontAwesome, or custom CSS. |
| CheckIconName |
string? |
Accept |
The name of the built-in icon to render as the check mark inside the checkbox. |
| CheckIconAriaLabel |
string? |
null |
The aria label of the icon for the benefit of screen readers. |
| ChildContent |
RenderFragment? |
null |
Used to customize the content of checkbox(Label and Box). |
| Classes |
BitCheckboxClassStyles? |
null |
Custom CSS classes for different parts of the BitCheckbox. |
| Color |
BitColor? |
null |
The general color of the checkbox. |
| DefaultIndeterminate |
bool? |
null |
Default indeterminate visual state for checkbox. |
| DefaultValue |
bool? |
null |
The default value of the checkbox to be used in uncontrolled mode (i.e. when the Value is not bound). |
| Indeterminate |
bool |
false |
An indeterminate visual state for checkbox. The indeterminate state takes visual precedence over the checked state but does not affect the Value. |
| IndeterminateIcon |
BitIconInfo? |
null |
The icon to render in the indeterminate state using custom CSS classes for external icon libraries, replacing the default filled square. Takes precedence over IndeterminateIconName when both are set. |
| IndeterminateIconName |
string? |
null |
The name of the built-in icon to render in the indeterminate state, replacing the default filled square. |
| Label |
string? |
null |
Descriptive label for the checkbox. |
| LabelPosition |
BitLabelPosition? |
null |
The position of the label in regards to the checkbox box. Takes precedence over Reversed when both are set. |
| LabelTemplate |
RenderFragment? |
null |
Used to customize the label for the checkbox. |
| Name |
string? |
null |
Name for the checkbox input. This is intended for use with forms and NOT displayed in the UI. |
| OnChange |
EventCallback<bool> |
|
Callback for when the checkbox value changes, once the new state is committed. |
| OnChanging |
EventCallback<BitCheckboxChangeArgs> |
|
Callback invoked before the state of the checkbox changes, letting the change be cancelled by setting Cancel on its arguments. |
| OnClick |
EventCallback<MouseEventArgs> |
|
Callback for when the checkbox clicked. |
| ReadOnly |
bool |
false |
Makes the checkbox read-only: it stays focusable and gets announced by screen readers, but user interaction no longer changes its state. |
| Required |
bool |
false |
Makes the checkbox required, rendering the native required attribute on its input and an asterisk next to its label. |
| Reversed |
bool |
false |
Reverses the label and checkbox location. |
| Size |
BitSize? |
null |
The size of the checkbox. |
| StopPropagation |
bool |
false |
If true, stops the click event from bubbling up to the parent elements. |
| Styles |
BitCheckboxClassStyles? |
null |
Custom CSS styles for different parts of the BitCheckbox. |
| ThreeState |
bool |
false |
Enables cycling through the unchecked, checked and indeterminate states on each click, instead of the indeterminate state being reachable only programmatically. |
| Title |
string? |
null |
Title text applied to the label container of the checkbox. |
| UncheckedIcon |
BitIconInfo? |
null |
The icon to render in the unchecked state using custom CSS classes for external icon libraries. Takes precedence over UncheckedIconName when both are set. |
| UncheckedIconName |
string? |
null |
The name of the built-in icon to render in the unchecked state. By default the unchecked box is empty and previews the check icon on hover. |
| 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. |
| 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. |
| 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. |
| 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. |