refac/enh: mention token rendering

This commit is contained in:
Timothy Jaeryang Baek
2025-09-14 18:49:01 -04:00
parent 22e11760a1
commit 098f34f400
7 changed files with 108 additions and 6 deletions
+5 -3
View File
@@ -7,10 +7,12 @@
export let elementId = '';
export let as = 'div';
export let className = 'flex';
export let placement = 'top';
export let content = `I'm a tooltip!`;
export let touch = true;
export let className = 'flex';
export let theme = '';
export let offset = [0, 4];
export let allowHTML = true;
@@ -59,8 +61,8 @@
});
</script>
<div bind:this={tooltipElement} class={className}>
<svelte:element this={as} bind:this={tooltipElement} class={className}>
<slot />
</div>
</svelte:element>
<slot name="tooltip"></slot>