# Checkbox > A checkbox with an optional label and an error state. Source: https://native.shellui.dev/docs/components/form/checkbox ## Installation ```bash shellui-native add checkbox ``` **Platforms:** MAUI · Avalonia. Also installs `icon`. ## Usage ### Basic **MAUI** ```xml ``` **Avalonia** ```xml ``` [Live preview](https://native.shellui.dev/preview/index.html?c=checkbox-basic) ## 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. |