{#each items as { key, value, badge, title }} {#if key && value}
onSelect(value)} {title}> {@html key} {#if badge} {badge} {/if}
{/if} {/each}