{% with variant=variant|default:"default" size=size|default:"default" type=type|default:"button" icon_position=icon_position|default:"left" disabled=disabled|default:False %}
{% if href %}
{% if icon and icon_position == 'left' %}
{{ icon|safe }}
{% endif %}
{% if text %}{{ text }}{% endif %}
{% if icon and icon_position == 'right' %}
{{ icon|safe }}
{% endif %}
{% else %}
{% endif %}
{% endwith %}