storyblok / storyblok-vue

Vue.js SDK for Storyblok CMS
MIT License
95 stars 20 forks source link

StoryblokComponent not forwarding slots #268

Open djam90 opened 1 year ago

djam90 commented 1 year ago

Expected Behavior

For the lib/StoryblokComponent.vue component to be useful, it would be helpful if we could use slots with the component.

Current Behavior

Slots are not forwarded through the dynamic component in lib/StoryblokComponent.vue

Steps to Reproduce

<template>
  <StoryblokComponent v-if="story" :blok="story.content">
    <div>Some slot content here</div>
  </StoryblokComponent>
</template>

The above code will not render the slot content.

PR to resolve: https://github.com/storyblok/storyblok-vue/pull/263

alvarosabu commented 1 year ago

Hi there @djam90 thanks for open this ticket and the correspondent PR, I just mention my colleagues on the PR for approval