{% for tabId, tab in tabs %} {% if tab %} {% set tabIsSelected = ((selectedTab is not defined and loop.first) or (selectedTab is defined and selectedTab == tabId)) -%} {% set class = tab.class ?? '' -%}
  • {{ tab.label }} {% if class == 'error' %}{% endif %}
  • {% endif %} {% endfor %}