mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-09-04 01:22:32 +00:00
toggle additional data on elevation profile
This commit is contained in:
14
website/src/lib/components/Tooltip.svelte
Normal file
14
website/src/lib/components/Tooltip.svelte
Normal file
@@ -0,0 +1,14 @@
|
||||
<script lang="ts">
|
||||
import * as Tooltip from '$lib/components/ui/tooltip/index.js';
|
||||
|
||||
export let side: 'top' | 'right' | 'bottom' | 'left' = 'top';
|
||||
</script>
|
||||
|
||||
<Tooltip.Root>
|
||||
<Tooltip.Trigger>
|
||||
<slot name="data" />
|
||||
</Tooltip.Trigger>
|
||||
<Tooltip.Content {side}>
|
||||
<slot name="tooltip" />
|
||||
</Tooltip.Content>
|
||||
</Tooltip.Root>
|
Reference in New Issue
Block a user