{#each tabs as { title }, i}
(current_selection = i)} class:active-example-tab={current_selection == i} class="demo-tab hover:text-gray-800 cursor-pointer px-3 py-1" > {title}
{/each}
{#each tabs as { demo, code }, i (demo)}
{@html code}
{#key demo}
{/key}
{/each}