{#each tabs as tab (tab.value)} {tab.label} {/each} {#each tabs as tab (tab.value)} {#if panel}{@render panel({ value: tab.value })}{/if} {/each}