{% macro tabs( id, tabsets=[], main_attrs=None, tablist_attrs=None, default_tab_index=1, include_script=false, register_on=["alpine:init"] ) %} {% if include_script %} {% include "components/tabs-script.njk" %} {% endif %}
{% for tabset in tabsets %} {% endfor %}
{% for tabset in tabsets %} {% if tabset.panel %}
{{ tabset.panel | safe }}
{% endif %} {% endfor %}
{% endmacro %}