We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddc47b commit d466626Copy full SHA for d466626
src/TwigComponent/doc/index.rst
@@ -1167,12 +1167,12 @@ when multiple other variant conditions are met.
1167
lg: 'text-lg',
1168
}
1169
},
1170
- compoundVariants: {
1171
- // if colors=red AND size = (md or lg), add the `font-bold` class
1172
- colors: ['red'],
+ compoundVariants: [{
+ // if color = red AND size = (md or lg), add the `font-bold` class
+ color: ['red'],
1173
size: ['md', 'lg'],
1174
class: 'font-bold'
1175
- }
+ }]
1176
}) %}
1177
1178
<div class="{{ alert.apply({color, size}) }}">
0 commit comments