-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Styled Components in React - It seems like an absolute necessity #106
Comments
I think this would need to be configurable for people to use either styled, Twin, tailwind.macro, etc. Maybe something available in settings.json like {
"autocompleteTailwindIn": [
"tw",
"twin",
"styled"
]
} where the array values get injected into the pattern matching section. |
@JDDoesDev I'm not quite understanding the usecase of having such a configuration option. Like the auto-completion is triggered using regex is what i believe. So when the cursor enters either the tailwind macro par or inside the styled section, then also automatically the suggestion should popup right? |
Support for the twin.macro and Emotion would be really handy. Can we configure it to work somehow as is? |
@timfee: I tried changing my For reference, I'm trying to get the autocomplete working with |
Ah, in that case, you need to specify |
I'm not sure that I follow your suggestion. I've tried both
and
Neither got autocomplete to work. |
Thanks for getting back to me, I'm using React so setting the language mode to HTML is not really sustainable. Regardless, it does not allow for class autocompletion. It seems the solution I'm looking for is on the team's radar: tailwindlabs/tailwindcss#7553 |
Yeah, I think this falls under tailwindlabs/tailwindcss#7553 as well |
Thanks for the plugin. Most often i use tailwind macro in a styled component while doing react. But it seems that the auto-completions are not triggered inside a styled component for react. Example:-
I'm not sure how this plugin triggers the auto-completion. But if the trigger area is fixed using a regex, would adding a regex similar tot this, to the possible patterns work(im not that good with regex, but still)?
Patterns of code that should be matched:-
The text was updated successfully, but these errors were encountered: