feat: pass tabVisible to tabs

This commit is contained in:
Pavel
2025-08-14 19:18:14 +02:00
parent 2fd5244f85
commit 697bde7b53

View File

@@ -53,7 +53,12 @@
<div class="content-container" data-testid={contentTestId}>
{#each _.compact(tabs) as tab, index}
<div class="container" class:isInline class:tabVisible={index == value} style:max-width={containerMaxWidth}>
<svelte:component this={tab.component} {...tab.props} tabControlHiddenTab={index != value} />
<svelte:component
this={tab.component}
{...tab.props}
tabVisible={index == value}
tabControlHiddenTab={index != value}
/>
{#if tab.slot != null}
{#if tab.slot == 0}<slot name="0" />
{:else if tab.slot == 1}<slot name="1" />