{% unless hide-labels %}
{{ state.title }}
{% endunless %}
{% for type in variants %}
{% if show-link or type[0] != 'link' %}
{% if include.icon or include.icon-only %}
{% assign icon = type[1].icon %}
{% endif %}
{% assign class = prefix | append: type[0] %}
{% if state.class %}
{% assign class = class | append: ' ' | append: state.class %}
{% endif %}
{% if include.class %}
{% assign class = class | append: ' ' | append: include.class %}
{% endif %}
{% assign text = type[1].title %}
{% assign color = type[0] %}
{% include ui/button.html block=true color=false class=class icon=icon icon-only=include.icon-only text=text %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}