Get your own Vue server Result Size: 625 x 565
App.vue
SlotComp.vue
main.js
 
<template>
  <h1>App.vue</h1>
  <p>The component has two &lt;div&gt; tags with one &lt;slot&gt; in each.</p>
  <slot-comp #topSlot>'Hello!'</slot-comp>
</template>

<script></script>

<style>
  #app {
    width: 300px;
  }
</style>                  
http://localhost:5173/