Closed abernier closed 9 months ago
Currently, it is possible (without any TS warning) to use compoundVariants with a single prop:
compoundVariants
cva("base", { variants: {} compoundVariants: [ { size: "big", css: "..." } ] })
IMO it should go into variants if only one prop like here.
variants
What about adding type-safety to prevent this?
https://github.com/joe-bell/cva/blob/main/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L11
Currently, it is possible (without any TS warning) to use
compoundVariants
with a single prop:IMO it should go into
variants
if only one prop like here.What about adding type-safety to prevent this?