Steps
Steps show progress through a sequence. Use an <ol> of step items; numbers come from a CSS counter and the current step is marked with aria-current="step".
Playground
Flip a class and watch it change. The markup below follows along.
- Account
- Profile
- Finish
<ol class="steps">
<li class="step">Account</li>
<li class="step">Profile</li>
<li class="step">Finish</li>
</ol>Class names
| Class name | Type | Description |
|---|---|---|
steps | Component | Horizontal list of steps; put it on an <ol> |
step | Part | One step with an auto-numbered circle |
step-done | State | Completed step: filled circle and connecting line |
aria-current="step" | State | Current step: filled circle and bold label |
steps-vertical | Modifier | Stack the steps vertically |
Steps
- Account
- Profile
- Finish
<ol class="steps">
<li class="step">Account</li>
<li class="step">Profile</li>
<li class="step">Finish</li>
</ol>Current step
Mark the active step with aria-current="step" so assistive tech announces it.
- Account
- Profile
- Finish
<ol class="steps">
<li class="step" aria-current="step">Account</li>
<li class="step">Profile</li>
<li class="step">Finish</li>
</ol>Completed steps
- Account
- Profile
- Finish
<ol class="steps">
<li class="step step-done">Account</li>
<li class="step step-done">Profile</li>
<li class="step" aria-current="step">Finish</li>
</ol>Vertical
- Order placed
- Packed
- Shipped
- Delivered
<ol class="steps steps-vertical">
<li class="step step-done">Order placed</li>
<li class="step" aria-current="step">Packed</li>
<li class="step">Shipped</li>
<li class="step">Delivered</li>
</ol>Checkout flow
- Cart
- Shipping
- Payment
- Review
- Confirmation
<ol class="steps">
<li class="step step-done">Cart</li>
<li class="step step-done">Shipping</li>
<li class="step" aria-current="step">Payment</li>
<li class="step">Review</li>
<li class="step">Confirmation</li>
</ol>