Can someone make me understand why this is not working ? I imported my utility class as a string from my data file. I'm using tailwindcss enter image description here
Asked
Active
Viewed 101 times
0
-
Duplicate of -> https://stackoverflow.com/questions/69687530/dynamically-build-classnames-in-tailwindcss There are a few options listed there, but in short, **you cant have dynamic css clases on tailwindcss** – Ethaan May 09 '22 at 18:15
-
Other option -> https://twind.dev/ – Ethaan May 09 '22 at 18:16
-
Please make sure to post code and errors as text directly to the question (and [not as images](https://meta.stackoverflow.com/questions/285551)), and [format them appropriately](https://stackoverflow.com/help/formatting). – juliomalves May 10 '22 at 18:03
-
https://stackoverflow.com/questions/72185444/change-colour-of-nextjs-tailwind-component-based-on-prop/72185577#72185577 Similar to this – May 11 '22 at 06:23