2022-11-24 06:04:20 +01:00
|
|
|
<script setup lang="ts">
|
2023-12-19 22:31:39 +01:00
|
|
|
import type { Popper as VTooltipType } from 'floating-vue'
|
2022-12-08 11:07:54 +01:00
|
|
|
|
2023-02-08 10:20:58 +01:00
|
|
|
export interface Props extends Partial<typeof VTooltipType> {
|
2022-11-24 09:34:05 +01:00
|
|
|
content?: string
|
2023-02-08 10:20:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
defineProps<Props>()
|
2022-11-24 06:04:20 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<VTooltip
|
2024-02-24 13:24:21 +01:00
|
|
|
v-if="isHydrated"
|
2022-11-24 06:04:20 +01:00
|
|
|
v-bind="$attrs"
|
2023-01-15 20:56:13 +01:00
|
|
|
auto-hide
|
2024-04-06 05:58:50 +02:00
|
|
|
no-auto-focus
|
2022-11-24 06:04:20 +01:00
|
|
|
>
|
|
|
|
<slot />
|
|
|
|
<template #popper>
|
|
|
|
<div text-3>
|
2022-11-24 09:34:05 +01:00
|
|
|
<slot name="popper">
|
|
|
|
{{ content }}
|
|
|
|
</slot>
|
2022-11-24 06:04:20 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</VTooltip>
|
|
|
|
</template>
|