Checkbox
A checkbox with an outer border, inner fill, and label.
Figma Mockup

Preview
Rendered in WASM — scroll may behave differently from the rest of the pageUsage
rust
use ui_theme::components::checkbox;
let mut checked = false;
checkbox(ui, &theme, &mut checked, "Enable feature"); Props
| Prop | Type | Default | Description |
|---|---|---|---|
ui | &mut Ui | required | The egui UI context |
theme | &Theme | required | Theme instance |
checked | &mut bool | required | Mutable checked state |
label | &str | required | Checkbox label text |