css-in-rust
css-in-rust copied to clipboard
Yew 0.18 support
I can't use css-in-rust
in Yew that version is 0.18
I have generate a PR https://github.com/lukidoescode/css-in-rust/pull/37 Waiting for approval ... You can use the branch to start.
you can make it manually
use yew::html::Classes;
use css_in_rust::Style;
pub fn parser(style: Style) -> Classes {
Classes::from(style.to_string())
}
to use
let style = match Style::create(...){...};
html!{
<Element class=parser(style.clone()) ></Element>
}
There is a fork of this repo that added 0.18 support: https://github.com/futursolo/stylist-rs