-
-
Save efosao/bca2f16d32750495529415d92b840fe6 to your computer and use it in GitHub Desktop.
Visual Studio Code config to get TailwindCSS autocomplete in Gomponents classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( | |
. "github.com/maragudk/gomponents/html" | |
) | |
func HeaderView() g.Node { | |
component := Div(Class("/* inside here you get tailwind autocomplete */")) | |
return component | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tailwindCSS.includeLanguages": { | |
"go": "html", | |
}, | |
"tailwindCSS.experimental.classRegex": [ | |
"Class\\(\"([\\w\\s\\-\\:\\[\\]/]*)\"\\)", | |
"Classes\\{\"([\\w\\s\\-\\:\\[\\]/]*)\":(.)*\\}" | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment