{% macro tabs( id, tabsets=[], main_attrs=None, tablist_attrs=None, default_tab_index=1, include_html=true, include_script=true, register_on=["alpine:init"] ) %} {% if include_script %} {% endif %} {% if include_html %}
{% for tabset in tabsets %} {% endfor %}
{% for tabset in tabsets %} {% if tabset.panel %}
{{ tabset.panel | safe }}
{% endif %} {% endfor %}
{% endif %} {% endmacro %}