A package for grouping variants together #20068
KushalXCoder
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I faced a small issue of writing
hover:,focus:, etc. repeatedly in a classname. Like, we have tw-merge for resolving classnames, clsx for conditional rendering, so why not something for this issue. Then I also came across a past dicussion post, regarding the same issue.So, built
tw-variant, it just solves this issue, with minimal dependency and easy setup. Do check it out and share your reviews too : )An example of it's usage :-
So, it's useful for writing cleaner and composable classname for components.
NPM :- https://www.npmjs.com/package/tw-variant
Github :- https://github.com/KushalXCoder/tw-variant
Beta Was this translation helpful? Give feedback.
All reactions