Skip to content
CHOICE · FREE

Checkbox

A simple yes or no that works with your forms and validation.

The simple yes or no, built for real forms: it has a label, works with validation, and supports the indeterminate state for partial selections.

Why it helps

  • Label and validation built in
  • Indeterminate state
  • Large touch target

Where it fits

  • Accept terms
  • Select all in a list
  • Settings
Checkbox control in a RayCraft page

Example

<Checkbox @bind-Value="_agree" Label="I accept the terms" />
<span>Value: @_agree</span>

@code {
    private bool _agree;
}

A short fragment. Add @using RayCraft.Blazor.Components to your page and use an interactive render mode.

Included in RayCraft Free. Working examples are in the GitHub repository (MIT); it holds example and demo code, not the library code.

All controls ยท Documentation