Closed augustebaum closed 1 year ago
It seems this is a duplicate of https://github.com/futursolo/stylist-rs/issues/86.
The solution I found was to use yew
in its 0.19.3
version instead of master
and I could then use css!
after importing it:
use stylist::css;
Can we confirm this is the right way to go?
You are correct, there is currently no up-to-date version for yew's master
branch. IF it existed, it will get updated in this PR: #69 though, but I currently don't have the time to do so. I will try updating that next week or the following.
Hi,
Thanks so much for the hard work on this project!
In one of my projects (https://github.com/augustebaum/romodoro) I implement the
Component
trait fromyew
, and I'd like to be able to manipulate some CSS attributes dynamically, hencestylist
seems like the right way to go. Here is what it looks like:This does not compile, with the following error being displayed:
I cannot make sense of this error: even though I understand what it means that some trait is not implemented, I don't know which method I should implement. How should I go about solving this?
Furthermore, it seems that
stylist
is designed to work well withyew
, e.g. the very first item in the documentation focuses onyew
function components. However, I could not find any documentation on how to use it withyew
in any other way. Is this intentional?I'm a beginner in Rust so forgive me if I overlooked some obvious detail. Thanks for your attention.