osuresearch / ui

Ohio State Research UI
https://osuresearch.github.io/ui/main
MIT License
6 stars 3 forks source link

Add CVA for simplifying variant management #82

Closed McManning closed 1 year ago

McManning commented 1 year ago

To clean up how we deal with Tailwind classes and component variants, might want something a little more robust than what I'm currently doing (classnames/clsx and toggling class chunks based on states + variants combinations).

Looks like CVA is a popular choice for something like this: https://cva.style/docs/getting-started

McManning commented 1 year ago

Obsolete in beta.1