styled-components / xstyled

A utility-first CSS-in-JS framework built for React. 💅👩‍🎤⚡️
https://xstyled.dev
MIT License
2.28k stars 105 forks source link

New variant syntax? #238

Closed incompletude closed 3 years ago

incompletude commented 3 years ago

I read that the variant utility was dropped in favor of x.* syntax. How would one write button variants using the new syntax? I couldn't find any examples.

gregberge commented 3 years ago

I read that the variant utility was dropped in favor of x.* syntax. How would one write button variants using the new syntax? I couldn't find any examples.

The example is in the doc.

incompletude commented 3 years ago

Since the docs don't have a search, and you already know where it is, it would be nice if you posted the link along with your answer. Anyways, I found another issue containing the same question. Thx.

gregberge commented 3 years ago

The doc has a search on desktop.

gregberge commented 3 years ago

@incompletude you should avoid considering open source maintainer like a kind bot that will answer all your questions. Most of maintainers do it on their free time. I answered on my mobile, quickly. I am sorry to not have taken time to leave my daughter alone, take my Macbook, look for the example in the code and copy paste it to avoid you a search in the docs. Very sorry my lord.