{#if label} {/if}
{#each options as option}
{@render optionIcon(option)} {@render optionLabel(option)} {#if !stateless && select.isSelected(option)} {/if}
{/each}
{#snippet optionLabel(opt: ActionSelectOption)} {#if typeof opt.label === 'string'} {opt.label} {:else} {@render opt.label(opt)} {/if} {/snippet} {#snippet optionIcon(opt: ActionSelectOption)} {#if opt.icon && typeof opt.icon === 'object'} {:else if opt.icon} {@render opt.icon(opt)} {/if} {/snippet}