{#each items as item, index (item.key)} {#if index > 0} {/if} {@const state = stateOf(index)} {@const slot = steps({ state })}
  1. {#if state === "done"} {item.label}
  2. {/each}