The Arbitrary Variants release #556
ben-rogerson
started this conversation in
Releases
Replies: 1 comment
-
Amazing! This can let us now style input components using the shadow dom or even nested react components with needing to pass complex props 🤯 Such a great addition and powerful feature! 👏🏻 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
🌟 New: Arbitrary Variants (#546)
The star feature of this release is the addition of a new variant that creates a custom selector for classes.
Usage is easy, just add the selector within square brackets and prefix it on any class (or round-bracketed set):
Before this feature, the styling above would need help from the css prop:
There are a wide range of uses for Arbitrary Variants:
I hope you enjoy using this powerful feature!
🐛 Bugfixes
<Menu.Item tw="block">
) (Allow dot notation components #534)bg-color
classes from trumpingbg-opacity-x
classes (Pushbg-opacity-x
to the end of class lists #552)peer
class is used as a tailwind class (Peer usage feedback #551):root
usingaddBase
in plugins (Fix css variables added with addBase #521)container
class (Enable variants on the container class #518)This discussion was created from the release The Arbitrary Variants release.
Beta Was this translation helpful? Give feedback.
All reactions