Closed maracht-nn closed 1 year ago
I'm not able to reproduce this, please try upgrading to the latest version or provide a code sandbox link that reproduces the error.
My bad, I found the issue on my side. I was trying to abstract the function and missed passing the correct type. After using {TV} from 'tailwind-variants', everything's working perfectly.
Sorry for the oversight, and thanks for your patience! 🙏
Describe the bug Receive type error when TailwindVariant style contains boolean.
To Reproduce Steps to reproduce the behavior:
.tsx
fileType boolean is not assignable to string | number | undefined
Expected behavior There should not be any errors. The boolean should be converted to string under the hood. Or the type should accept boolean.
Screenshots
The setting on tv containing booleans:
The type error received when using the tv style:
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Please let me know if there is any questions. Thank you.