peer selector for data attribute #11903
-
i'm trying to do something like this |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You'd use a |
Beta Was this translation helpful? Give feedback.
-
Should Or in quick reference since it lists |
Beta Was this translation helpful? Give feedback.
You'd use a
peer-data-*
arbitrary variant likepeer-data-[state=on]:
(where the string in brackets is of the form[attribute-name-without-data-prefix=value]
) or an arbitrarypeer-*
variant likepeer-[[data-state=on]]:
(where the string in brackets is a CSS selector).Tailwind Play