Checkboxes

Checkbox component is built on top of Blazor's InputCheckbox class, and support all standard behaviors for form model and validation. It must be wrapped inside Blazor's EditForm component or Blazority's Form component, and cannot be used in standalone mode. Learn more at ASP.NET Core Blazor forms and validation

Blazority provides the CheckboxContainer component which encases the label, help text and validation in a single component. It also provides the underlying CheckboxContainerControl component providing only the logic, allowing custom styling and formatting of the containing form components. The Checkbox component can be used in either of the container components.

Using Checkbox with CheckboxContainer

The box is currently unchecked

Validation

Only checked is allowed.

Multiple Checkboxes

Option 1 can only be checked, Option 2 can only be unchecked.

Using Checkbox with CheckboxContainerControl

Helper Text
An unhandled error has occurred. Reload 🗙