Skip to main content

Buttons

Trait Buttons 

Source
pub trait Buttons: ThemeExt {
    // Provided method
    fn button(
        &self,
        label: impl Into<SharedString>,
        style: ButtonStyle,
        fade: Option<Fade>,
    ) -> Div { ... }
}

Provided Methods§

Source

fn button( &self, label: impl Into<SharedString>, style: ButtonStyle, fade: Option<Fade>, ) -> Div

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".

Implementations on Foreign Types§

Source§

impl Buttons for Theme

Implementors§