All Questions
2 questions
0
votes
1
answer
1k
views
How to add specific styles to className in Tailwind
I am passing a style to a checkbox when it is checked, but I do it in my tailwind.css file.
I am wondering if it is possible somehow to do it in className inline, because I do not want really to add ...
1
vote
1
answer
2k
views
Render a specific className when active with classNames and Tailwind
I'm using Tailwinds CSS and classNames package.
I'm rendering out 2 divs and I want to check if one of them has am active class, then set a specific background color className bg-[#000] to it.
I ...