Skip to content

How to Use Multi data-* Attribute Selectors in Tailwind CSS? #16390

Answered by wongjn
selllami asked this question in Help
Discussion options

You must be logged in to vote

You can do:

<div className="group-data-[sidebar-state=open]:group-data-[device=mobile]:className">

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@selllami
Comment options

Answer selected by selllami
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