Checkbox

A checkbox with an optional label and an error state.

Installation

bash
shellui-native add checkbox

Platforms: MAUI · Avalonia. Also installs icon.

Usage

Basic

Rendered with ShellUI for Blazor
<ui:Checkbox Label="Accept terms and conditions" IsChecked="True" />
<ui:Checkbox Label="Email me about new components" />
<ui:Checkbox Label="Disabled" IsEnabled="False" />
Avalonia, running in your browser

API

Property Type Default Description
IsChecked bool false Whether it's checked. Two-way bindable.
Label string — Text next to the control; clicking it toggles the control.
HasError bool false Shows the destructive border and ring.
Event Arguments Description
CheckedChanged bool User input only: setting IsChecked from code or a binding doesn't raise it.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.