v1.3.0 28

Onboarding Flow

A step-by-step setup: a stepper, a card for the current step and buttons to move between steps.

Default

Continue and Back move through the steps; the stepper follows and marks finished steps complete.

html
  1. 1
    Account
  2. 2
    Profile
  3. 3
    Preferences
  4. 4
    Complete

Set up your profile

Tell us a bit about yourself

<div class="vt-onboarding vt-max-w-xl" data-onboarding="" data-onboarding-start="1">
  <ol class="vt-stepper">
    <li class="vt-stepper-step vt-stepper-step-complete">
      <span class="vt-stepper-indicator">
        <span class="vt-stepper-number">1</span>
        <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="vt-stepper-icon" aria-hidden="true">
          <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"></path>
        </svg>
      </span>
      <div class="vt-stepper-content"><span class="vt-stepper-label">Account</span></div>
    </li>
    <li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step vt-stepper-step-current" aria-current="step">
      <span class="vt-stepper-indicator">
        <span class="vt-stepper-number">2</span>
      </span>
      <div class="vt-stepper-content"><span class="vt-stepper-label">Profile</span></div>
    </li>
    <li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
      <span class="vt-stepper-indicator">
        <span class="vt-stepper-number">3</span>
      </span>
      <div class="vt-stepper-content"><span class="vt-stepper-label">Preferences</span></div>
    </li>
    <li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
      <span class="vt-stepper-indicator">
        <span class="vt-stepper-number">4</span>
      </span>
      <div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
    </li>
  </ol>
  <div class="vt-card">
    <section data-onboarding-panel="" hidden="">
      <div class="vt-card-header">
        <h3 class="vt-card-title" tabindex="-1">Create your account</h3>
        <p class="vt-card-description">Start with the email you use at work</p>
      </div>
      <div class="vt-card-body">
        <div class="vt-form">
          <div class="vt-field">
            <label class="vt-label" for="onboarding-email">Email</label>
            <input id="onboarding-email" type="email" autocomplete="email" placeholder="you@example.com" class="vt-input">
          </div>
          <div class="vt-field">
            <label class="vt-label" for="onboarding-password">Password</label>
            <input id="onboarding-password" type="password" autocomplete="new-password" placeholder="At least 8 characters" class="vt-input">
          </div>
        </div>
      </div>
    </section>
    <section data-onboarding-panel="">
      <div class="vt-card-header">
        <h3 class="vt-card-title" tabindex="-1">Set up your profile</h3>
        <p class="vt-card-description">Tell us a bit about yourself</p>
      </div>
      <div class="vt-card-body">
        <div class="vt-form">
          <div class="vt-field">
            <label class="vt-label" for="onboarding-name">Full name</label>
            <input id="onboarding-name" type="text" autocomplete="name" placeholder="John Doe" class="vt-input">
          </div>
          <div class="vt-field">
            <label class="vt-label" for="onboarding-username">Username</label>
            <input id="onboarding-username" type="text" autocomplete="username" placeholder="@johndoe" class="vt-input">
          </div>
        </div>
      </div>
    </section>
    <section data-onboarding-panel="" hidden="">
      <div class="vt-card-header">
        <h3 class="vt-card-title" tabindex="-1">What are you interested in?</h3>
        <p class="vt-card-description">We'll tailor your start page to these topics</p>
      </div>
      <div class="vt-card-body">
        <div class="vt-form">
          <label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
            <div class="vt-checkbox checked" role="checkbox" aria-checked="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
                <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
              </svg></div>
            Design
          </label><label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
            <div class="vt-checkbox checked" role="checkbox" aria-checked="true"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
                <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
              </svg></div>
            Development
          </label><label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
            <div class="vt-checkbox" role="checkbox" aria-checked="false"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
                <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
              </svg></div>
            Marketing
          </label><label class="vt-check-label" onclick="this.querySelector('.vt-checkbox').classList.toggle('checked')">
            <div class="vt-checkbox" role="checkbox" aria-checked="false"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" class="check-icon" aria-hidden="true">
                <path d="M5 13.2592L7.58583 15.9568C8.2525 16.6523 8.58583 17 9.00004 17C9.41425 17 9.74759 16.6523 10.4143 15.9568L19 7" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="3"></path>
              </svg></div>
            Analytics
          </label>
        </div>
      </div>
    </section>
    <section data-onboarding-panel="" hidden="">
      <div class="vt-card-header">
        <h3 class="vt-card-title" tabindex="-1">You're all set!</h3>
        <p class="vt-card-description">Your account is ready</p>
      </div>
      <div class="vt-card-body">
        <p>You can change your profile and interests at any time in Settings.</p>
      </div>
    </section>
    <div class="vt-card-footer vt-onboarding-actions">
      <button type="button" class="vt-btn vt-btn-bordered" data-onboarding-back=""><span>Back</span></button>
      <button type="button" class="vt-btn vt-btn-primary" data-onboarding-next="" data-last-label="Start over"><span>Continue</span></button>
    </div>
  </div>
</div>

Guidelines

  1. Account
  2. 2
    Profile
  3. 3
    Done

Set up your profile

Do Show progress so users know how far along they are.

Set up your profile

Don't Don't hide progress — users abandon flows with no sense of place.

API Reference

Class Type Description
vt-onboarding Base Column of the stepper and the step card, 32px apart; full width of its container
vt-stepper Component Progress through the steps (Stepper): complete, current and upcoming steps
vt-card Component The current step (Card): vt-card-header with vt-card-title and vt-card-description, vt-card-body with the step content
vt-form Component Fields of the step (Form), 16px apart
vt-card-footervt-onboarding-actions Part Card footer with Back at the start and Continue at the end

Accessibility

Feature Details
Progress The stepper is an ordered list; the current step carries aria-current="step"
Headings Each step has its own title (vt-card-title) for screen reader navigation
Focus management When the step changes, focus moves to the new title (tabindex="-1")
Back on the first step Disabled rather than hidden, so Continue keeps its place
Form validation Validate each step before allowing progression to the next