{% load lb_tags %}
{% parse_icon attrs as i %}
<{{ as }}
class="
{% if btnStyle != 'bare' %}btn
{{ variantClasses|get_dict_item:variant }}
{{ btnStyleClasses|get_dict_item:btnStyle }}
{{ behaviorClasses|get_dict_item:behavior }}
{{ sizeClasses|get_dict_item:size }}
{{ modifierClasses|get_dict_item:modifier }}{% endif %}
{{ class }}
"
{{ attrs|strip_icon_attrs }}
>
{% if i.name and not i.end %}
{% endif %}
{{ slot }}
{% if i.name and i.end %}
{% endif %}
{{ as }}>