Skip to content

How to render slot in child component passed down from parent. #9604

Discussion options

You must be logged in to vote
<template v-if="pane.slots.label">
  <component :is="pane.slots.label"></component>
</template>

<template v-else>{{ pane.props?.label }}</template>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@T0miii
Comment options

Answer selected by T0miii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants