Render icon
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
<div {{ attributes }} class="{{ this.finalClasses }}">
|
<div {{ attributes }} class="{{ this.finalClasses }}">
|
||||||
|
<span class="inline-flex items-center justify-center gap-[0.4em] leading-none">
|
||||||
{% if this.icon %}
|
{% if this.icon %}
|
||||||
<twig:ux:icon name="{{ this.icon }}" class="size-4" />
|
<twig:ux:icon name="{{ this.icon }}" class="size-[1em] shrink-0" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if block('content') is not empty %}
|
{% if block('content') is not empty %}
|
||||||
@@ -8,4 +9,5 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
{{- this.label -}}
|
{{- this.label -}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user