v0.4.0
What's Changed
Features
-
Target Multiple Variant Options within Compound Variants by @joe-bell and @JeroenReumkens in #76
// components/button.ts import { cva } from "class-variance-authority"; const button = cva("…", { variants: { intent: { primary: "…", secondary: "…" }, size: { small: "…", medium: "…" }, }, compoundVariants: [ // Applied via: // `button({ intent: "primary", size: "medium" })` // or // `button({ intent: "secondary", size: "medium" })` { intent: ["primary", "secondary"], size: "medium", class: "…", }, ], });
Chores
New Contributors
- @TmLev made their first contribution in #70
- @JeroenReumkens made their first contribution in #76
Full Changelog: v0.3.0...v0.4.0