{#if hasWrapper}
{#if label} {label} {#if required} * {/if} {/if} {#if selected?.image} {selected.label} {/if} {selected?.label || placeholder} {#each options as option} {#snippet children({ selected })} {#if option.image} {option.label} {/if} {option.label} {#if selected} {/if} {/snippet} {/each} {#if error} {error} {/if}
{:else} {#if selected?.image} {selected.label} {/if} {selected?.label || placeholder} {#each options as option} {#snippet children({ selected })} {#if option.image} {option.label} {/if} {option.label} {#if selected} {/if} {/snippet} {/each} {/if}