<div class="badges ">
<div class="badge ">
-15%
</div>
<div class="badge badge--new">
new
</div>
<div class="badge ">
Promotion
</div>
</div>
<div class="badges {{ class }}">
{{#each badges}}
{{#if contentElement}}
{{ render (component contentElement) contentContext merge="true"}}
{{/if}}
{{/each}}
</div>
{
"badges": [
{
"contentElement": "badge"
},
{
"contentElement": "badge--new"
},
{
"contentElement": "badge",
"contentContext": {
"text": "Promotion"
}
}
]
}
.badges {
position: absolute;
display: flex;
flex-direction: column;
}
No notes defined.