Macro react_html::style
source · [−]macro_rules! style {
($($key:literal : $value:expr),* $(,)? ) => { ... };
}
Expand description
let style: CssProperties = style! {
"margin": "10px auto",
"paddingTop": 8,
};
Currently there is no static type checking with this macro.