onHover tailwindCSS
although this generated the correct class name, but the onHover property is still empty?
Is there a way to do this? other than hardcoding it?
6 Replies
this generates
hover:[color]
, you might want something like hover:bg-[color]
mb, should've included this:
i dont think that gets compiled correctly
yeah..
i found your problem you still generate class like this and tailwind doesn't work like that
tailwind needs to know the whole class beforehand
So you need to have in your object the css class as text so tailwindcss can include
Solution is
oh, whole class
Okay, that was the issue
thank you so much