busbud / tailwind-buddy

Tailwind Buddy: Your Friendly Helper for Composing Tailwind Classes 🎨
https://busbud.github.io/tailwind-buddy/
12 stars 1 forks source link

add class on side of className in the props object when using variant #22

Closed flozero closed 1 month ago

flozero commented 2 months ago

Context: https://github.com/busbud/tailwind-buddy/issues/19

To be more "framework" agnostic like. It would be a better dx to make the className that is more a react way, just class to follow what html does.

As we don't want to break our apps using it. We would want to add it on side.

Required:

zAlweNy26 commented 2 months ago

Imho, there should be two types, like BaseVariants and JsxVariants, so that it wouldn't be necessary to throw any errors. Let me know what you think.

flozero commented 2 months ago

I am not sure I quite understand what you are saying here. Can you give me a small example maybe ?