ComponentStyle

Trait ComponentStyle 

Source
pub trait ComponentStyle {
    // Required methods
    fn to_css(&self) -> String;
    fn class_name(&self) -> &str;
}
Expand description

Base trait for component styles

Required Methods§

Source

fn to_css(&self) -> String

Generate CSS for the component

Source

fn class_name(&self) -> &str

Get the class name

Implementors§