Navigation

Steps

A sequence, so numbering is earned. A track per step; done steps show a check.

Examples

Horizontal

  1. Completed: Account
  2. Workspace
  3. Members
  4. Billing

Vertical

  1. Completed: Email sent
  2. Enter code
  3. Done

Anatomy

ol.stepsAn ordered list in a row of equal columns.
> liOne step: a 2px track above its label. With numbers, a square counter sits above or beside it.

API

AttributeValuesDescription
aria-currentstepOn a step: the current one. Accent track, full text colour; with numbers, a solid accent counter.
data-donebooleanOn a step: completed. Accent track; with numbers, a check in place of the counter.
data-numberedbooleanShows a counter on each step and turns on the done check and current fill.
data-verticalbooleanStacks the steps, counter beside the label and no track. Counters always show in this form; data-numbered adds the states.

Accessibility

  • Mark the current step with aria-current="step"; it is the only state announced.
  • Done is visual only, so put <span class="sr-only">Completed: </span> inside each data-done step.
  • Counters are generated content, but the <ol> already announces each position.
Jump to
ProportionFoundations
MaterialFoundations
PresetsFoundations
ShellLayouts · Application
Container and stacksLayouts · Pages
SplitLayouts · Pages
Grid, bento, masonryLayouts · Pages
Switcher and rowLayouts · Pages
↑↓Move↵OpenescClose