<a class="
" href="#">
<span class="_inner">
<span class="_label">
</span>
</span>
</a>
{#
{% include '@partial-link' with {
classes: {
base: 'base_class',
modifiers: [],
utility: ''
},
id: null,
attributes: {'attribute': 'value'},
title: 'Button Text',
url: '#',
icon: '',
nowrap: false
} %}
#}
<a
class="
{{ classes.base }}
{% for modifier in classes.modifiers %}
{{ classes.base ~ '_' ~ modifier }}
{% endfor %}
{{ classes.utility }}
"
{% if id %}id="{{ id }}"{% endif %}
{% for attribute, value in attributes %}
{{ attribute }}="{{ value }}"
{% endfor %}
{% if attributes.target == '_blank' %}
rel="{{ attributes.rel|default('noopener') }}"
title="{{ attributes.title|default('opens in a new window') }}"
{% endif %}
href="{{ url ?: '#' }}"
>
<span class="{{ classes.base }}_inner">
{% if nowrap %}
{% spaceless %}
<span class="{{ classes.base }}_label">
{{ title }}
</span>
<span class="{{ classes.base }}_icon icon_nowrap" aria-hidden="true">
{{ icon(icon) }}
</span>
{% endspaceless %}
{% else %}
<span class="{{ classes.base }}_label">
{{ title }}
</span>
{% if icon %}
<span class="{{ classes.base }}_icon" aria-hidden="true">
{{ icon(icon) }}
</span>
{% endif %}
{% endif %}
</span>
</a>
No notes defined.