Dynamic badge blade color

color="" and :color="" can't call or use alpinejs function or variable, how can i solve this? the code:
5 Replies
zydnrbrn
zydnrbrnOP2mo ago
No description
zydnrbrn
zydnrbrnOP2mo ago
No description
zydnrbrn
zydnrbrnOP2mo ago
No description
ikbentomas
ikbentomas3w ago
It's hard to see what part of your code you are referring to, using these screenshots with a large chuncks of code. Can you post small snippets formatted as code using backticks and only keep the parts that are relevant for your question?
Dennis Koch
Dennis Koch3w ago
You probably can’t use the Blade component if you need to set the color via Alpine.

Did you find this page helpful?