Checkbox
A control that allows the user to toggle between checked and not checked.
By clicking this checkbox, you agree to the terms.
Installation
Usage
<Checkbox />Checked State
Use Checked for uncontrolled checkboxes, or Checked and CheckedChanged to control the state.
<Checkbox @bind-Checked="_checked" />
@code {
private bool _checked;
}Invalid State
Set aria-invalid on the checkbox and data-invalid on the field wrapper to show the invalid styles.
Basic
Pair the checkbox with Field and FieldLabel for proper layout and labeling.
Description
Use FieldContent and FieldDescription for helper text.
By clicking this checkbox, you agree to the terms and conditions.
Disabled
Use the Disabled parameter to prevent interaction and add the data-disabled attribute to the <Field> component for disabled styles.
Group
Use multiple fields to create a checkbox list.
Table
| Name | Role | ||
|---|---|---|---|
| Sarah Chen | sarah.chen@example.com | Admin | |
| Marcus Rodriguez | marcus.rodriguez@example.com | User | |
| Priya Patel | priya.patel@example.com | User | |
| David Kim | david.kim@example.com | Editor |
RTL
To enable RTL support in Blazix, see the RTL configuration guide.
Translated with AI for the demo, so it may have mistakes.
بالنقر على هذا المربع، فإنك توافق على الشروط.
API Reference
Checkbox
Other attributes are passed to the element it renders.