Components / Checkbox
Checkbox
Check box with a label.
Example
The component itself, running in WebAssembly, beside its code in a playground. Try it.
Code
use ravenrs::prelude::*;
fn checkbox() -> impl View {
let terms = State::new(true);
let news = State::new(false);
VStack::new((
Checkbox::new("I accept the terms", terms.binding()),
Checkbox::new("Send me product news", news.binding()),
))
.spacing(12.0)
}