2023-04-25 12:18:40 +02:00

13 lines
280 B
Vue

<!-- <MyComponent> template -->
<script setup lang="ts">
const props = defineProps({
label: String,
year: Number,
});
</script>
<template>
<div data-testid="scoped-slot">
<slot :text="`Hello ${props.label} from the slot`" :year="props.year"></slot>
</div>
</template>