Skip to content

Data attributes with named groups #18113

Answered by wongjn
rettimo asked this question in Help
Discussion options

You must be logged in to vote

You put the name at the end:

<div data-test="true" className="group/named">
  <div class="group-data-[test=true]/named:class"></div>
</div>

https://play.tailwindcss.com/gxSd1IXc0p

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rettimo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants