{#each steps as step, index (step)} {@const displayNumber = startAt + index} {@const isActive = displayNumber <= currentStep} {@const isLastStep = index === totalSteps - 1}
{displayNumber}
{step} {#if !isLastStep} {/if}
{/each}