Rust UI component that displays a control that allows the user to toggle between checked and not checked.
utils
- Copy Demo
Checkboxes use relative units and will scale to your font size. By default the checkbox size is set to 1.25em.
Installation
You can run either of the following commands:
# cargo install ui-cli --forceui add demo_checkboxui add checkbox
Update the imports to match your project setup.
Usage
use crate::components::ui::checkbox::Checkbox;
<Checkbox label="Accept terms and conditions" />