nextui-org / tailwind-variants

🦄 Tailwindcss first-class variant API
https://tailwind-variants.org
MIT License
2.42k stars 68 forks source link

`VariantProps` doesn't type `responsiveVariants` in global configuration #131

Closed adonaicandido closed 9 months ago

adonaicandido commented 11 months ago

Describe the bug When using global configuration or custom TV instance, the VariantProps type doesn't take into consideration the responsiveVariants property.

To Reproduce Steps to reproduce the behavior:

  1. Set a global configuration with responsiveVariants: true using any of the available options;
  2. See error

Expected behavior Correctly type my variants.

Screenshots image image image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Using the latest version (0.1.18)