Kinetic Steps

A step-by-step progress indicator whose finished steps draw a check; completed steps can be revisited, with optional Previous and Next buttons.

  • <kt-kinetic-steps>
  • Navigation
  • No framework

Kinetic Steps

The code

Copy the Kinetic Steps

Fastest: press Copy on the card above for one complete file. To build it into your own project, use the files below: the markup, the styles, this component’s script and the shared effects script (effects.js) that every component uses.

<kt-kinetic-steps items="Account,Shipping,Payment,Review" active="1" controls label="Checkout progress"></kt-kinetic-steps>

<kt-kinetic-steps items="Plan,Build,Test,Ship" active="2" orientation="vertical" label="Release stages"></kt-kinetic-steps>

Attributes

NameWhat it doesDefault
itemsComma-separated step names.Account,Details,Review
activeIndex of the current step, starting at 0. One past the last step marks every step done.0
orientation"horizontal" or "vertical".horizontal
controlsPresent to show Previous and Next buttons.—
labelAccessible name of the list.Progress
sfxSound-effect text when a step changes.ピシッ!

Keyboard and screen readers

  • An ordered list; the current step has aria-current="step" and every step shows Completed, In progress or Not started as text.
  • Completed steps are buttons you can Tab to and press to go back; later steps are not interactive.
  • Previous and Next use aria-disabled at the ends so focus is never lost.
  • A polite live region announces "Step N of M" when the step changes.
  • Fires a change event with the new active index.

Styling variables

Every look is a CSS variable: --kt-accent, --kt-accent-ink, --kt-radius-btn, --kt-surface-radius, --kt-surface-bg, --kt-border-w, --kt-comp-shadow and --font-sans. The copied file sets them all from your choices.

FAQ

Kinetic Steps: questions answered

How do I use the Kinetic Steps?

Press Copy on the card to get a complete HTML file, or copy the HTML, CSS and JavaScript tabs into your own page. In your markup the element is written as <kt-kinetic-steps>.

Which attributes does <kt-kinetic-steps> accept?

items, active, orientation, controls, label, sfx. Each one is described in the attributes table on this page.

Is the Kinetic Steps accessible?

An ordered list; the current step has aria-current="step" and every step shows Completed, In progress or Not started as text. Completed steps are buttons you can Tab to and press to go back; later steps are not interactive. Previous and Next use aria-disabled at the ends so focus is never lost. A polite live region announces "Step N of M" when the step changes. Fires a change event with the new active index.

Can I change the Kinetic Steps colors, corners and font?

Yes. Use the options on this page: accent color, border radius, background, border, shadow and Google font. The copied code already contains your choices, and every one of them is a CSS variable you can edit later.