pub fn button<State: 'static, F: Fn(&mut State) + 'static>(
label: impl Into<String>,
on_press: F,
) -> ButtonView<State>Expand description
Create a filled (highest-emphasis) button labelled label, running
on_press on release inside its bounds — the reference’s default
M3EButton/M3EButton.filled.
Chain ButtonView::size/ButtonView::shape/ButtonView::variant for
the other tiers, ButtonView::icon to add a leading icon, and
ButtonView::enabled to disable it.