Skip to main content

toggle_row

Function toggle_row 

Source
pub fn toggle_row(label: impl Into<SharedString>, switch: Switch) -> Div
Expand description

Places a wrapping label beside a trailing native switch.

The caller owns the value and commit boundary. The switch retains its native keyboard, focus, disabled state, and change callback.