joe-bell / cva

Class Variance Authority
https://cva.style
Apache License 2.0
5.46k stars 107 forks source link

impossible combinations #262

Closed abernier closed 5 months ago

abernier commented 5 months ago

imagine a button with variants

but with some combinations should not be supported (by design team), for instance: intent=text/theme=candy

how would you prevent/handle those cases so TS yells at:

<Button intent="text" theme="candy" />
joe-bell commented 5 months ago

https://github.com/joe-bell/cva/blob/main/.github/ISSUE_TEMPLATE/bug_report.md?plain=1#L11