{$tag = $tag|default:'li'}
{$tabId = $tabId|default:''}
{$isActive = $isActive|default:false}

{strip}
    {block name="et-tab"}
        <{$tag} role="presentation"
            {if !empty($tabId)} id="tab-label-{$tabId}"{/if}
            {if !empty($title)} title="{$title|escape:'html'}"{/if}
            class="nav-item{if !empty($classes)} {$classes}{/if}"
        >
            <a class="nav-link {if !empty($triggerClasses)} {$triggerClasses}{/if} {if $isActive} active{/if}"
                {if !empty($target)}href="#{$target}" aria-controls="{$target}" aria-selected="{if $isActive}true{else}false{/if}"{/if}
                data-toggle="tab"
                role="tab"
                {if !empty($tabId)} id="tab-link-{$tabId}"{/if}
            >
                {$label}
            </a>
        </{$tag}>
    {/block}
{/strip}