Skip to content

Step indicator

An order step indicator: finished steps clickable to go back, the current step announced, upcoming steps locked.

  • Tailwind
  • React
  • CSS
  • WordPress
Open in a new tab

Description

At the top of a checkout, a sign-up or a quote request, four badges joined by a line show where the visitor stands: a tick for finished steps, a filled badge with a halo for the current step, a grey number for what comes next. Finished steps are real buttons that let users go back; the next ones are disabled until the current step is done. The Previous and Next buttons move through the journey, the last one becomes “Place the order”, and on each change focus is placed on the step heading (“Step 3 of 4: Payment”) so screen readers follow. The current step has aria-current="step" and each badge announces its state (“done”, “current”, “upcoming”) in hidden text: colour is never the only information. All inside a named nav element with an ordered list. 44 px badges, four columns that fit at 360 px, AA contrast in light and dark mode.

Code

Loading the code…

The code of this component in

Archive contents

indicateur-etapes-html-tailwind.zip3 files · 5 Ko

  • index.html12 Ko
  • README.md4 Ko
  • LICENSE.md1 Ko

Tags

Updated on December 2, 2026.

Reviews

No reviews yet.

In the same spirit

  • A slim bar at the top of the page with a message, a link and a close button; once closed, it stays hidden for the period you choose.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A sticky sidebar table of contents for blog posts: it highlights the section being read, shows the reading time left and folds into a list under the title on mobile.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A column of dots on the side of the page that follows the section being read and lets visitors jump to it, with a label on hover and focus.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Tooltips in four positions that open on hover, tap and keyboard focus, and close with Escape, as WCAG requires.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component