Steps

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.

  1. Account
  2. Profile
  3. Finish
Modifiers
<ol class="steps">
  <li class="step">Account</li>
  <li class="step">Profile</li>
  <li class="step">Finish</li>
</ol>

Class names

Class nameTypeDescription
stepsComponentHorizontal list of steps; put it on an <ol>
stepPartOne step with an auto-numbered circle
step-doneStateCompleted step: filled circle and connecting line
aria-current="step"StateCurrent step: filled circle and bold label
steps-verticalModifierStack the steps vertically

Steps

  1. Account
  2. Profile
  3. 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.

  1. Account
  2. Profile
  3. 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

  1. Account
  2. Profile
  3. 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

  1. Order placed
  2. Packed
  3. Shipped
  4. 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

  1. Cart
  2. Shipping
  3. Payment
  4. Review
  5. 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>