{% set dropdownOnMobile = true %}
<ul class="nav {{ dropdownOnMobile ? 'd-md-flex d-none' : '' }} list-unstyled tabbing-animations-wrapper js-tabbing-animations-wrapper custom-scrollbar nav-tabs {{ className|default('') }}" {% if isTabbing|default(false) %}role="tablist"{% endif %}>
{% for tab in items|default([]) %}
<li class="nav-item js-tabbing-slider-nav-item">
<a class="nav-link js-tabbing-animations-link {{ tab.isActive ? 'js-tabbing-animations-link-active': '' }} {{ tab.isActive ? 'active': '' }} {{ isDynamicTabbing|default(false) ? 'js-dynamic-tabbing__toggle' : ''}}"
data-content-url="{{ tab.contentUrl }}"
{% if tab.isActive %}aria-current="page"{% endif %}
{% if tab.id is defined %}id="{{ tab.id }}"{% endif %}
{% if isTabbing|default(false) %}
href="#{{ tab.targetId }}"
data-bs-toggle="tab"
data-height="false"
role="tab"
aria-controls="{{ tab.targetId }}"
aria-selected="{{ tab.isActive ? 'true': 'false' }}"
{% else %}
href="{{ tab.href }}"
{% endif %}>
{{ tab.text|raw }}
</a>
</li>
{% endfor %}
<div class="tabbing-animations-indicator js-tabbing-animations-indicator"></div>
</ul>
{% if dropdownOnMobile %}
{% set activeOption = '' %}
<div class="dropdown mb-4 d-md-none js-tabbing-dropdown px-0">
<ul class="dropdown-menu nav tabbing-dropdown">
{% for tab in items|default([]) %}
{% if tab.isActive %}
{% set activeOption = tab.text|raw %}
{% endif %}
<li class="dropdown-item nav-item p-0">
<a class="nav-link tabbing-dropdown__item js-tabbing-dropdown__item {{ tab.isActive ? 'active': '' }} {{ isDynamicTabbing|default(false) ? 'js-dynamic-tabbing__toggle' : ''}}"
data-content-url="{{ tab.contentUrl }}"
{% if tab.isActive %}aria-current="page"{% endif %}
{% if tab.id is defined %}id="{{ tab.id }}"{% endif %}
{% if isTabbing|default(false) %}
href="#{{ tab.targetId }}"
data-bs-toggle="tab"
data-height="false"
role="tab"
aria-controls="{{ tab.targetId }}"
aria-selected="{{ tab.isActive ? 'true': 'false' }}"
{% else %}
href="{{ tab.href }}"
{% endif %}>
{{ tab.text|raw }}
</a>
</li>
{% endfor %}
</ul>
<button class="btn btn-outline dropdown-toggle js-tabbing-dropdown__active-item tabbing-dropdown__button" type="button" data-bs-toggle="dropdown" aria-expanded="false">
{{ activeOption }}
</button>
</div>
{% endif %}