My_Test_Repo/force-app/main/default/lwc/slotParentComponent/slotParentComponent.html

11 lines
345 B
HTML

<template>
<lightning-card title="Slot Demo">
<div class="slds-m-around-medum">
<c-slot-child-component>
<p slot="username">Yumi</p>
<p slot="age">25</p>
<p slot="footer"> I m footer</p>
</c-slot-child-component>
</div>
</lightning-card>
</template>