Stepper
A step indicator showing progress through a multi-step process.
Default
Horizontal stepper with completed, current, and upcoming steps connected by lines.
html
-
Account
-
2
Profile
-
3
Preferences
-
4
Complete
<div class="vt-max-w-2xl vt-mx-auto">
<ol class="vt-stepper">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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">2</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">3</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">4</span>
<div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
</li>
</ol>
</div>
Vertical
Vertically stacked stepper with circles connected by vertical lines.
html
-
Account Create your account credentials
-
2
Profile Set up your personal profile
-
3
Preferences Configure your preferences
-
4
Complete Review and finish setup
<div class="vt-max-w-md vt-mx-auto">
<ol class="vt-stepper vt-stepper-vertical">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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>
<span class="vt-stepper-description">Create your account credentials</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">2</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Profile</span>
<span class="vt-stepper-description">Set up your personal profile</span>
</div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
<span class="vt-stepper-indicator">3</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Preferences</span>
<span class="vt-stepper-description">Configure your preferences</span>
</div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
<span class="vt-stepper-indicator">4</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Complete</span>
<span class="vt-stepper-description">Review and finish setup</span>
</div>
</li>
</ol>
</div>
With Descriptions
Horizontal stepper where each step includes a title and a description below.
html
-
Account Create your account
-
2
Details Fill in your details
-
3
Preferences Set your preferences
-
4
Complete Review and confirm
<div class="vt-max-w-3xl vt-mx-auto">
<ol class="vt-stepper">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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>
<span class="vt-stepper-description">Create your 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">2</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Details</span>
<span class="vt-stepper-description">Fill in your details</span>
</div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
<span class="vt-stepper-indicator">3</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Preferences</span>
<span class="vt-stepper-description">Set your preferences</span>
</div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
<span class="vt-stepper-indicator">4</span>
<div class="vt-stepper-content">
<span class="vt-stepper-label">Complete</span>
<span class="vt-stepper-description">Review and confirm</span>
</div>
</li>
</ol>
</div>
Sizes
Stepper in small, default, and large size variants.
html
Small
-
Account
-
2
Profile
-
3
Preferences
-
4
Complete
Default
-
Account
-
2
Profile
-
3
Preferences
-
4
Complete
Large
-
Account
-
2
Profile
-
3
Preferences
-
4
Complete
<div class="vt-flex vt-flex-col vt-gap-10 vt-max-w-2xl vt-mx-auto">
<div class="vt-flex vt-flex-col vt-gap-4">
<p class="vt-caption vt-text-foreground-muted">Small</p>
<ol class="vt-stepper vt-stepper-sm">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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">2</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">3</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">4</span>
<div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
</li>
</ol>
</div><div class="vt-flex vt-flex-col vt-gap-4">
<p class="vt-caption vt-text-foreground-muted">Default</p>
<ol class="vt-stepper">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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">2</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">3</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">4</span>
<div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
</li>
</ol>
</div><div class="vt-flex vt-flex-col vt-gap-4">
<p class="vt-caption vt-text-foreground-muted">Large</p>
<ol class="vt-stepper vt-stepper-lg">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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">2</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">3</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">4</span>
<div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
</li>
</ol>
</div>
</div>
With Error
A stepper where one step shows an error state with destructive styling.
html
-
Account
-
Profile
-
Preferences
-
4
Complete
<div class="vt-max-w-2xl vt-mx-auto">
<ol class="vt-stepper">
<li class="vt-stepper-step vt-stepper-step-complete">
<span class="vt-stepper-indicator"><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-complete">
<span class="vt-stepper-indicator"><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">Profile</span></div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step vt-stepper-step-error">
<span class="vt-stepper-indicator"><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="M18 6L12 12M12 12L6 18M12 12L18 18M12 12L6 6" 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">Preferences</span></div>
</li>
<li class="vt-stepper-connector" aria-hidden="true"></li><li class="vt-stepper-step">
<span class="vt-stepper-indicator">4</span>
<div class="vt-stepper-content"><span class="vt-stepper-label">Complete</span></div>
</li>
</ol>
</div>
Guidelines
-
Account
-
2
Profile
-
3
Complete
-
1
Account
-
2
Profile
-
3
Complete
Anatomy
ol.vt-stepper ← Row of steps (vt-stepper-sm | -lg, vt-stepper-vertical)
├── li.vt-stepper-step ← Step (vt-stepper-step-current | -complete | -error)
│ ├── span.vt-stepper-indicator ← Number or svg.vt-stepper-icon
│ └── div.vt-stepper-content
│ ├── span.vt-stepper-label
│ └── span.vt-stepper-description
├── li.vt-stepper-connector ← Line to the next step (aria-hidden)
└── li.vt-stepper-step …
API Reference
| Class | Type | Description |
|---|---|---|
vt-stepper |
Base | The steps in a row (ol), full width; connectors take the space between them |
vt-stepper-sm |
Size | 24px indicators, 12px icons, Label/SM |
vt-stepper-md |
Size | 32px indicators, 16px icons, Label/MD (default) |
vt-stepper-lg |
Size | 40px indicators, 20px icons, Label/LG |
vt-stepper-vertical |
Modifier | Steps stacked, labels beside the indicators, vertical connectors |
vt-stepper-step |
Part | One step (li) — the indicator above its content, 8px apart; upcoming (muted) by default |
vt-stepper-step-current |
State | The step in progress — brand indicator with a 4px ring, brand label; add aria-current="step" |
vt-stepper-step-complete |
State | A finished step — brand indicator with a check; the connector after it turns brand |
vt-stepper-step-error |
State | A step that needs attention — error tint, 2px error border, error label |
vt-stepper-indicator |
Part | The round marker with the step number or an icon |
vt-stepper-number |
Part | Optional wrapper of the number; hidden in complete and error steps |
vt-stepper-icon |
Part | Check or X inside the indicator, sized with the stepper |
vt-stepper-content |
Part | Label and description, stacked |
vt-stepper-label |
Part | Step name — Label style of the size, colored by the state |
vt-stepper-description |
Part | Secondary line — Caption, muted |
vt-stepper-connector |
Part | The line between two steps (li, aria-hidden), level with the indicators |
Accessibility
| Feature | Details |
|---|---|
| Semantics | vt-stepper is an ordered list, so screen readers announce the number of steps; connectors are aria-hidden="true" |
| Progress | Mark the step in progress with aria-current="step" as well as vt-stepper-step-current |
| Status | The state is not color alone: complete steps show a check, error steps an X; add visually hidden text ("completed", "error") where the label does not say it |
| Navigation | If steps are clickable, the label is a link or a button |