pub trait Buttons: ThemeExt {
// Provided method
fn button(
&self,
label: impl Into<SharedString>,
style: ButtonStyle,
fade_key: Option<SharedString>,
) -> Div { ... }
}Provided Methods§
A labeled button in one of the shipped styles. fade_key matters only
for ButtonStyle::Ghost: Some animates the hover wash per instance
(pass a unique key per button), 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".