19 lines
313 B
Vue
Raw Permalink Normal View History

2026-05-31 13:21:13 +02:00
<script setup lang="ts">
import { ref, watchEffect } from 'vue'
const props = defineProps<{
element: HTMLElement
}>()
const container = ref<HTMLElement>()
watchEffect(() => {
if (container.value)
container.value.appendChild(props.element)
})
</script>
<template>
<div ref="container" />
</template>