Open marguerrrite opened 1 year ago
MyComponent.vue
<div>
<header>
<slot name="header"/>
</header>
<div class="card">
<slot name="card" />
</div>
</div>
Inside the .MD file
<MyComponent>
<template v-slot:header>My header</template>
<template v-slot:card>My card</template>
</MyComponent>
Hope this helps @margueriteroth
i have same issue
@DjilanoS not works
@margueriteroth did u found a solution?
To get component slots to render correctly, this issue references putting a full return between brackets:
Is there a trick in getting named slots to work? To do something like the following:
As soon as I introduce the
#
, I get this parsing error (regardless of full returns):