Function Switch
Source pub fn Switch(props: SwitchProps) -> Element
Expand description
Switch component for toggling between two states
§Example
ⓘrsx! {
Switch {
model_value: true,
active_text: Some("ON".to_string()),
inactive_text: Some("OFF".to_string()),
on_change: move |val| println!("Switch: {}", val),
}
}