{#each items as item, index (item.key)} {@const state = stateOf(index)} {@const here = !complete && index === current} {@const filled = complete || index < current} {@const selectable = index <= furthest} {@const slot = steps({ state, filled, here, clickable: selectable && !here })} {@const description = `Step ${index + 1} of ${items.length}: ${item.label}`}
  1. {#if selectable} {:else} {description} {/if} {#if index < items.length - 1} {/if}
  2. {/each}