{#each options.slice(0, 4) as option, index}
(selected = option)} disabled={disabled[index] ?? false} type="button" > {optionNames[index] || option} {#if headless && option == selected}
{/if}
{/each} {#if options.length > 4}
{#each options.slice(4) as option, index}
{optionNames[index + 4] || option}
{/each}
{/if}