When I am trying to add group class to an element using tw, it is throwing an error and suggesting me to use class names instead.
For Reference: https://tailwindcss.com/docs/pseudo-class-variants#group-hover
<div css={tw`group bg-white hover:bg-blue-500`}>
<p css={tw`text-gray-700 group-hover:text-white`}>Hello World.</p>
</div>
The group classes work a little differently to others, they need to be added as a className, take a look at this doc.
The group classes work a little differently to others, they need to be added as a
className, take a look at this doc.
Thanks for the info!
Most helpful comment
The group classes work a little differently to others, they need to be added as a
className, take a look at this doc.