{#snippet chips()}
{#each names as name (name)}
point(name)} onmouseleave={release} onfocus={() => point(name)} onblur={release} onclick={() => { // Pin *and* point: the pointer is still resting on this chip, and `pointed` outranks // `pinned`, so setting only the pin would leave a click that visibly did nothing. pinned = name; point(name); chosen = true; }} >
{name}
{/each}
{/snippet}
{#if !chipsBelow} {@render chips()} {/if}
(reading = true)} onmouseleave={() => (reading = false)} >
{@render children?.()}
{#if chipsBelow} {@render chips()} {/if}