pub fn button<State: 'static, F: Fn(&mut State) + 'static>(
label: impl Into<String>,
on_press: F,
) -> ButtonView<State>Expand description
Create a button labelled label that runs on_press against the app state
when released inside its bounds.