Skip to content

Does CVA lib causes runtime overhead like other css-js/ts libs? #83

Closed Locked Answered by joe-bell
DeveloperMatheus asked this question in Q&A
Discussion options

You must be logged in to vote

Disclaimer: Although cva is a tiny library, it's best to use in a SSR/SSG environment – your user probably doesn't need this JavaScript, especially for static components.

https://github.com/joe-bell/cva#getting-started


cva is currently 572B minizipped, so really you should be fine – but there's no harm in moving that to a server-side/static function if you're concerned

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@samadadi
Comment options

@joe-bell
Comment options

@samadadi
Comment options

Answer selected by DeveloperMatheus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants