mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-30 23:30:04 +00:00
21 lines
590 B
Svelte
21 lines
590 B
Svelte
<script lang="ts">
|
|
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
|
|
|
|
export let label: string;
|
|
export let side: 'top' | 'right' | 'bottom' | 'left' = 'top';
|
|
</script>
|
|
|
|
<Tooltip.Provider>
|
|
<Tooltip.Root>
|
|
<Tooltip.Trigger {...$$restProps} aria-label={label}>
|
|
<slot />
|
|
</Tooltip.Trigger>
|
|
<Tooltip.Content {side}>
|
|
<div class="flex flex-row items-center">
|
|
<span>{label}</span>
|
|
<slot name="extra" />
|
|
</div>
|
|
</Tooltip.Content>
|
|
</Tooltip.Root>
|
|
</Tooltip.Provider>
|