ecklf / tailwindcss-radix

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

Optional state prefix. #19

Closed sudoaugustin closed 2 years ago

sudoaugustin commented 2 years ago

Is there any way we can turn off -state prefix in data-state variants? So the radix-state-checked will be transformed into radix-checked. I think it's easier to read and understand (e.g. radix-disable)

ecklf commented 2 years ago

I initially allowed this functionality, but I’ve decided to remove it as I don’t have control over how the Radix authors will name their attributes. Stripping the name may result in colliding class names further down the line.