Checkbox

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

Figma Mockup

Checkbox checked Checkbox empty

Preview

Rendered in WASM — scroll may behave differently from the rest of the page

Usage

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