React Form Wizard
Schema API demos

Vertical Layout

Form wizard with 2 steps. Currently on step 1.

Sample 9: Vertical Layout

Steps arranged vertically

Step 1 of 2: Vertical Step 1

Vertical Layout

Steps are arranged vertically instead of horizontally.

Code

import React from "react";
import FormWizard from "react-form-wizard-component";
import "react-form-wizard-component/styles.css";

export default function Sample9VerticalLayout() {
  return (
    <>
      <FormWizard
        title="Sample 9: Vertical Layout"
        subtitle="Steps arranged vertically"
        layout="vertical"
        onComplete={(data?: any) => {
          console.log("Wizard completed with data:", data);
        }}
      >
        <FormWizard.TabContent title="Vertical Step 1" icon="ti-direction-alt">
          <h4>Vertical Layout</h4>
          <p>Steps are arranged vertically instead of horizontally.</p>
        </FormWizard.TabContent>
        <FormWizard.TabContent title="Vertical Step 2" icon="ti-direction">
          <h4>Layout Options</h4>
          <p>Choose between horizontal and vertical layouts.</p>
        </FormWizard.TabContent>
      </FormWizard>
      <style>{`
        @import url("https://cdn.jsdelivr.net/gh/lykmapipo/themify-icons@0.1.2/css/themify-icons.css");
      `}</style>
    </>
  );
}

On this page