AI & Machine Learning

Class Variance Authority

Class Variance Authority is a TypeScript library that generates typed class names from a base class string and named variants. It streamlines the creation of Tailwind components with size, intent, or state variants, enabling developers to build shadcn/ui-style buttons or badges without conditional className ternaries. The library also provides VariantProps for strongly typed component props, benefiting front‑end engineers who prioritize type safety and maintainable styling.

Publisher / source
TerminalSkills Library
Upstream record
TerminalSkills/skills
Version
Version 2
Published
Publication review
Approved for publication
Content fingerprint
1ca628fc1c5be104d960a290597f68de89abdfb143261fdadf71ee66957d5045