ecklf / tailwindcss-radix

Utilities and variants for styling Radix state
https://tailwindcss-radix.vercel.app
MIT License
2.11k stars 67 forks source link

Use with twin.macro #46

Closed nuthinking closed 7 months ago

nuthinking commented 1 year ago

Is there a way to make it work with twin.macro? Thanks!

Screenshot 2023-10-03 at 15 30 27
nuthinking commented 1 year ago

Tailwind now supports data, hence I can do in twin.macro this: tw="hover:bg-n200A data-[state=open]:bg-n200A".

ecklf commented 7 months ago

This seems to be supported by version 3 of twin now. Feel free to re-open if this isn't the case. https://github.com/ben-rogerson/twin.macro/issues/741