You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't the suggested regex also start autocompleting tailwind classes inside any string in the document? I'd suggest we make it tv() specific, like clsx and cva:
This seems to work best for me.
First it limits the scope within the tv({}) object,
Then it will give IntelliSense to any quoted ("", '', ``) string within that object.
Describe the bug
When I type
else {
I get a suggestion{}-[]
, and when I press enter it's accepted and I end up withelse {}-[]
.To Reproduce
Steps to reproduce the behavior:
Create a
.ts
file with:Then after the
if (true)
type{
Expected behavior
No auto complete
Screenshots
Desktop (please complete the following information):
Additional context
I've tracked it down to the regex suggested in https://www.tailwind-variants.org/docs/getting-started
Instead I'm now using this (but it's too early to tell if it's good)
The text was updated successfully, but these errors were encountered: