{#if label}
{label} {#if required}
*
{/if}
{/if}
{ openDropdown() }} >
{#if isOpen && filteredOptions.length > 0}
{#each filteredOptions as option, index}
{ event.preventDefault() selectOption(option) }} > {option.label}
{/each}
{/if}
{#if error}
{error}
{/if}