<template>
<div>
<slot v-if="slotAlreadyAttached"></slot>
<div class="ui attached segment" v-else>
<slot></slot>
</div>
<div>
</template
This fails compiling with error template syntax error Duplicate default <slot> found in the same template. The logic is that we can choose to wrap the default slot content in some tag or not under certain condition, such as the slot content itself.