{#if unused.length > maxItems}
(collapsed = !collapsed)}
on:keydown={onEnterOrSpace(() => (collapsed = !collapsed))}
role="button"
tabindex="0"
aria-expanded={!collapsed}
>
{@html icon}
{collapseMsg}
{/if}
{unusedMsg}
{#if collapsed}
{unused.slice(0, maxItems).join(", ")}
{#if unused.length > maxItems}
... (+{unused.length - maxItems})
{/if}
{:else}
{#each unused as entry}
- {entry}
{/each}
{/if}