Rust UI component that displays a control that allows the user to toggle between checked and not checked.
utils
- Copy Demo
Airplane
Installation
You can run either of the following commands:
# cargo install ui-cli --forceui add demo_switchui add switch
Update the imports to match your project setup.
Usage
use crate::components::ui::switch::Switch;
<Switch checked=false />