We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allow css to receive params:
css red(myColor string) { background-color: myColor; } templ ex() { <div class={red("#ff0000")}></div> }
The text was updated successfully, but these errors were encountered:
Hi @dmitryuck - that's a duplicate of #88.
It was closed (yesterday) in #484, so the next version of templ will have params - very similar to what you've asked for, except it would be:
css bgColor(color string) { background-color: { color }; }
You can try it out by using the main branch if you like.
Sorry, something went wrong.
No branches or pull requests
Allow css to receive params:
The text was updated successfully, but these errors were encountered: