Skip to main content

button

Function button 

Source
pub fn button<State, F>(
    label: impl Into<String>,
    on_press: F,
) -> ButtonView<State>
where State: 'static, F: Fn(&mut State) + 'static,
Expand description

Create a button labelled label that runs on_press against the app state when released inside its bounds.