Replies: 1 comment 1 reply
-
|
first of all bundle size is negligible – clsx is tiny (~240 bytes gzipped) |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hello,
why are we importing clsx from the clsx package and not directly from class-variance-authority?
According to the documentation on class-variance-authority, cx exports the clsx package but renames it, which would save us a direct dependency https://cva.style/docs/api-reference#cx
to
Beta Was this translation helpful? Give feedback.
All reactions