Skip to main content

Checkbox

Function Checkbox 

Source
pub fn Checkbox(props: CheckboxProps) -> Element
Expand description

Checkbox component for selecting options

§Example

rsx! {
    Checkbox {
        model_value: true,
        label: Some("Accept terms".to_string()),
        on_change: move |v| println!("Checked: {}", v),
    }
}