N
Nuxt3y ago
RAVEN

question - slots in components

hey i wanna make a component that uses slots usage of component should be <ComponentName title="" description="" link=""></ComponentName> is this possible? if yes - how should my ComponentName.vue file look like?
<template>
<div>
<div class="h4">
// slot for title here
</div>
<p>
// slot for description here
</p>
<NuxtLink :to='localePath("/app/events/" + slot_for_link_here)'>View</NuxtLink>
</div>
</template>
<template>
<div>
<div class="h4">
// slot for title here
</div>
<p>
// slot for description here
</p>
<NuxtLink :to='localePath("/app/events/" + slot_for_link_here)'>View</NuxtLink>
</div>
</template>
2 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
RAVEN
RAVENOP3y ago
thank you ❤️ ✅ CLOSED
Want results from more Discord servers?
Add your server