{# LIBRARIES #}
{{ attach_library('ui_patterns/libraries.bs_tab') }}
{{ attach_library('ui_patterns/bs-tabs.mg_tabs') }}
{{ attach_library('ui_patterns/bs-tabs.tabs_lib') }}

{# VARIABLES #}
{% set wrapper_attributes = wrapper_attributes|default(create_attribute()) %}
{% set wrapper_attributes = wrapper_attributes
  .setAttribute("id", "tb-#{ pid }")
%}
{% set wrapper_class = [wrapper_class|default(""), "tab-content"] %}

{# TEMPLATE #}
{{ nav }}
<div {{ wrapper_attributes.addClass(wrapper_class) }}>
  {{ children }}
</div>
