Skip to content

Passing stepper content templates dynamically #3639

Answered by m0ksem
Bond-Addict asked this question in Q&A
Discussion options

You must be logged in to vote

Hi. Sure, you can use Dynamic slots and proxy all incomming slots to va-stepper.

<va-stepper>
  <template
    v-for="name in $slots"
    :key="name"
    v-slot:[name]="slotScope"
  >
    <slot
      :name="name"
      v-bind="{ ...slotScope,  }"
    />
  </template>
</va-stepper>

You also can filter slots which not starts with step if you need.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bond-Addict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants