pub trait Buttons: ThemeExt {
// Provided method
fn button(
&self,
label: impl Into<SharedString>,
style: ButtonStyle,
fade: Option<Fade>,
) -> Div { ... }
}Provided Methods§
A labeled button in one of the shipped styles. fade matters only for
ButtonStyle::Ghost: Some animates the hover wash per instance,
None is the plain ghost with the hover left to the caller.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".