{#each tabs as tab}
onchange(tab.value)} > {#if tab.icon}
{tab.icon}
{/if} {tab.label}
{/each}