{% sw_extends '@Storefront/storefront/element/cms-element-button.html.twig' %}
{% block sw_cms_element_button_html %}
<a class="btn {{ buttonType }} {{ buttonAlignment }}"
title="{{ buttonText }}"
href="{{ buttonUrl }}" {% if button.tab.value == true %}target="_blank"{% endif %}>
{{ buttonText }}
{% if block.type === "image-text-button" or block.type === "product-slider-title" %}
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-5 h-5">
<path stroke-linecap="round" stroke-linejoin="round" d="M8.25 4.5l7.5 7.5-7.5 7.5" />
</svg>
{% sw_icon 'cart' style{'pack': 'chevron-right', 'class': 'w-6 h-6'} %}
{% endif %}
</a>
{% endblock %}