{% load lb_tags %}
{% parse_icon attrs as i %}
<{{ as }}
class="
{% if i.name %}flex items-center gap-2{% endif %}
{{ variantClasses|get_dict_item:variant }}
{{ sizeClasses|get_dict_item:size }}
{% if underline %}underline{% endif %}
{{ class }}
"
{{ attrs|strip_icon_attrs }}
>
{% if i.name and not i.end %}
{% endif %}
{{ slot }}
{% if i.name and i.end %}
{% endif %}
{{ as }}>