This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{% macro segmented_toggle(items, aria_label='Umschalter', extra_class='') -%}
|
||||
<nav class="segmented-toggle {{ extra_class }}" aria-label="{{ aria_label }}">
|
||||
{% for item in items %}
|
||||
<a href="{{ item.href }}"
|
||||
class="segmented-toggle__item {% if item.active %}is-active{% endif %}">{{ item.label }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user