cn
is redundant if there's only Tailwind Variants in its callsite
#615
armchair-traveller
started this conversation in
General
Replies: 1 comment
-
I also realized the features I needed from However, as noted in #762, if you need the object syntax from |
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
-
Tailwind Variants uses Tailwind merge under-the-hood for classes passed into it.
According to their home page:
From first page of docs:
so when we have something like
cn
actually runs the same code unnecessarily (clsx + tailwind-merge).Docs for overriding styles with class/className
Anyway it's a small issue and almost a nitpick. I figured I'd mention I noticed it, I'd write an AST script but don't really have time to see which directories should be examined to affect the generated code.
Beta Was this translation helpful? Give feedback.
All reactions