-
Hey, Is there a way to use the props in the component mode ? I tried with different props to do something like:
But nothing seems to happen... Do I have to use the composition API style declaration to use this prop ? |
Beta Was this translation helpful? Give feedback.
Answered by
KABBOUCHI
Feb 12, 2022
Replies: 1 comment
-
yes, its possible https://stackblitz.com/edit/vitejs-vite-vlt65w?file=src%2FApp.vue&terminal=dev <script setup>
import { ref } from 'vue';
const triggerTarget = ref();
</script>
<template>
<button ref="triggerTarget">Trigger target</button>
<br />
<tippy :triggerTarget="triggerTarget">
<template #default> Positioning target </template>
<template #content> I'm a Tippy tooltip! </template>
</tippy>
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
KABBOUCHI
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, its possible https://stackblitz.com/edit/vitejs-vite-vlt65w?file=src%2FApp.vue&terminal=dev