Skip to content

Onboarding Wizard

Tailwind CSS onboarding wizard with step indicator, progress bar, radio cards, topic chips, validation and an editable summary before finishing.

Also known as: multi step form, step by step form, signup wizard, form stepper

Onboarding Wizard live demo

Open in new tab

Tailwind CSS code (HTML, CSS, JS)

A four-step onboarding wizard built with Tailwind CSS and a small vanilla JavaScript controller. It welcomes a new user, asks for a name, a role and a few interests, then shows an editable summary before finishing: the kind of first-run flow you see in SaaS dashboards, team tools and productivity apps.

How it works

The root is .tow-wizard. The header holds a step counter (data-tow-counter), a role="progressbar" track whose fill is .tow-bar, and an ordered list of four data-tow-step items. Each item carries data-state="done|current|upcoming", and Tailwind's group-data-[state=current]: and group-data-[state=done]: variants restyle the numbered circle.

The form (data-tow-form) contains four data-tow-panel sections, a success section (data-tow-done) and the navigation bar (data-tow-nav) with Back, Continue and Finish buttons. Radio cards and checkbox chips use has-[:checked]: utilities, so their selected look needs no JavaScript.

On DOMContentLoaded the script initializes every .tow-wizard. Continue validates the current panel: every element with data-tow-required must have a value (text inputs) or a checked input (fieldsets). The attribute value is the error message, written into the panel's data-tow-error paragraph. On success show() hides the other panels, updates the step states, the counter, aria-valuenow and the --tow-progress custom property that sizes .tow-bar, then moves focus to the new panel heading. On the last step the data-tow-summary fields are filled from the form values, and data-tow-goto buttons jump back to a step. Submitting simulates a request with a 900 ms timeout and then reveals the success state; replace that timeout in script.js with fetch() and send new FormData(form).

Customization

  • data-tow-required on an input or fieldset: makes the field mandatory and sets the error text shown below the panel.
  • Add a new data-tow-panel section plus a matching data-tow-step item and the counter, progress bar and step states adapt automatically; set data-tow-label for the progress bar's spoken text.
  • data-tow-summary="name" on any element in the last panel: shows the value of the form field with that name; data-tow-empty sets the fallback text.
  • from-violet-100 via-white to-fuchsia-100 on .tow-wizard: change the page gradient, and swap violet in the buttons and chips for another Tailwind color to rebrand.
  • max-w-2xl on the card: widen to max-w-3xl for longer forms.
  • transition: width 0.4s on .tow-bar and the tow-enter keyframes in style.css: tune or remove the progress and panel animations.

Use cases

  • SaaS sign-up: welcome new users, then ask for a name, role and interests in four steps
  • Team tools: show a progress bar and step indicator during first-run setup
  • Productivity apps: radio cards and topic chips collect preferences with validation
  • Account setup: an editable summary lets users review answers before finishing

Accessibility

Each panel is a labelled section whose heading receives focus on every step change, so screen readers announce where the user is. The current list item has aria-current="step", and the progress bar exposes aria-valuenow and a readable aria-valuetext. Invalid fields get aria-invalid="true" and point to their message with aria-describedby; focus moves to the first invalid control. Grouped choices sit in fieldsets with legends, the digest toggle is a checkbox with role="switch", Edit buttons include hidden context text, and the Finish button sets aria-busy while saving. All controls show a violet focus outline, and animations are disabled under prefers-reduced-motion.

Usage notes

Enter in a text field acts as Continue. For several wizards on one page, use unique id values.

Onboarding Wizard at a glance

Framework
Tailwind CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Tailwind CSS
Layout
Responsive, works on mobile
Category
Multi-step Forms
License
Free for personal and commercial use

Questions about this template

Can I use the Onboarding Wizard code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Tailwind CSS from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>

The Tailwind browser build is for prototyping. In production, compile Tailwind with its CLI or your bundler.

Onboarding Wizard – free Tailwind CSS multi-step form template
Onboarding Wizard · free Tailwind CSS multi-step form template

More Multi-step Forms

Multi-Step Form with Progress Bar – free Bootstrap 6 multi-step form template

Multi-Step Form with Progress Bar

Bootstrap 6 three-step signup form with a gradient progress bar, per-step validation, password Strength meter, radio cards, switches and a success screen.

Multi-Step Form with Progress Bar – free Pure CSS multi-step form template

Multi-Step Form with Progress Bar

Four-step signup form with an animated progress bar, numbered step labels, per-step validation, Back and Next buttons and a review summary.

Multi-Step Registration Form – free Bootstrap 5 multi-step form template

Multi-Step Registration Form

Bootstrap 5 three-step registration form with a progress bar, step indicators, per-step validation, password matching, plan cards and a success screen.