Closed nael94 closed 3 months ago
Solved this with an ability to set static and conditional classes, in this example:
<div @class(['class1' => true, 'class2' => false, 'class3' => true, 'class4', 'class5', 'class6'])>
This is a div
</div>
All non-conditional classes will be set as well:
<div class="class1 class3 class4 class5 class6">
This is a div
</div>
This is better to represent all classes cases in one line.
Currently, spreading classes is only in a conditional statement, like this:
I'd like to suggest a condition-less spreading classes array like this:
This will spread all of classes,