{ whileShow(ev) }} on:keydown={(evt) => { if (($tooltip.component || $tooltip.label) && evt.key === 'Escape') { evt.preventDefault() evt.stopImmediatePropagation() hideTooltip() } }} /> {#if $tooltip.component && $tooltip.kind !== 'submenu'}
{:else if $tooltip.label && $tooltip.kind !== 'submenu'}
{:else if $tooltip.kind === 'submenu'} {/if}