Seeking guidance as a new Vue developer, I am looking for advice or suggestions on how to approach solving a particular problem.
Currently, I am working on creating a wizard tool that involves a multi-page form within the wizard. My ideal behavior would be something like this:
<myWizard>
<form>
<myPage>
<label />
<input/>
</myPage>
<myPage>
<label />
<input/>
</myPage>
</form>
</myWizard>
The main challenge lies in the fact that the content between the <myWizard>
tags varies depending on the user using the tool.
I have a basic setup already that can display content in separate tabs (pages) using Bootstrap, but I am curious about the best way to divide the form content into different pages.
Would using a <slot>
to include everything between the <myWizard>
tags and then having myPage
as another component to render what's between them into individual pages in the wizard be an effective approach?
However, implementing this and trying to identify "tags" or "components" inside the slot seems cumbersome and is something I haven't explored yet.
If you have any advice or tips, I would greatly appreciate it!