Skip to main content

ToggleButton

Function ToggleButton 

Source
pub fn ToggleButton(
    checked: bool,
    on_checked_change: impl Fn(bool) + 'static,
    config: ToggleButtonConfig,
    content: impl FnOnce(bool) -> View,
) -> View
Expand description

M3 Toggle Button - a button that toggles between checked/unchecked states.