{#each options as option, i} {@const isSelected = value === option.value} {@const displayLabel = option.label ?? option.value} {/each}