The Blazor Checkbox is a custom checkbox-type HTML5 input component for selecting one or more options from a list of predefined choices. It supports the indeterminate state, different sizes, custom labels and positions, and UI customization.
A single Blazor Checkbox consists of toggle states to check and uncheck options. To prevent the toggling of a checkbox value, use the “disable” option.
A tri-state checkbox can be checked, unchecked, or indeterminate. If a few child elements are selected, the parent element will be in an indeterminate state. If all the child elements are checked, the parent element will also be checked.
You can use different checkbox sizes as required in your application.
Add a label to define the Blazor Checkbox component’s caption. You can position the label either before or after the checkbox.
The Blazor Checkbox UI (frame and icons) can be completely customized.
The Blazor Checkbox component ships with built-in themes such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize these built-in themes or create new ones to build their own desired look and feel either by simply overriding Sass variables or using our Theme Studio application.
Easily get started with the Blazor Checkbox using a few simple lines of C# code example as demonstrated below. Also explore our Blazor Checkbox Example that shows you how to render and configure the Checkbox in Blazor.
@using Syncfusion.Blazor
@using Syncfusion.Blazor.Buttons
<div>
<SfCheckBox @bind-Checked="@isChecked">Checkbox: @isChecked</SfCheckBox>
</div>
@code {
private bool isChecked = true;
}
Checkbox is also available in JavaScript, Angular, React and Vue frameworks that are built from their own TypeScript libraries. Check out the different CheckBox platforms from the links below,
You can find our Blazor Checkbox demo here.
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.