mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-23 04:34:15 -04:00

ideally, there would be some auto-detection for the root of the provided slot, but apparently this isn’t easy to get
23 lines
370 B
Vue
23 lines
370 B
Vue
<script setup lang="ts">
|
|
withDefaults(defineProps<{
|
|
text: string;
|
|
tag?: string;
|
|
}>(), {
|
|
tag: 'span',
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<Popover
|
|
:tag="tag"
|
|
:title="text"
|
|
:aria-label="text"
|
|
placement="top"
|
|
>
|
|
<slot></slot>
|
|
<template #content>
|
|
{{ text }}
|
|
</template>
|
|
</Popover>
|
|
</template>
|