The steps component displays a user's progress along a series of steps to complete a task.

Example

⌘ Cmd + ⌥ Option + 1

Properties

propertypropTyperequireddefaultdescription
userCanEditbool-true Determines whether to show editable styling,
and whether to call passed click handler.
currentStepstring | numberyes-The currently selected step, maps to a value in items.
items[<button>{</button><button>...</button>
value: string | number,
label: node,
<button>}</button>
]
yes-Dropdown items that can be selected from the select dropdown.
onClickfuncyes-Function that is called when user clicks on a step.
testSectionstring--Identifier used to create data-test-section attributes for testing.

Usage

Use steps when the user needs to be guided along a series of actions in a process. Indicate how many steps are in the process and where the user is currently within the process.

Best Practices

Do

Always show the current step to the user

Don't

Change the order or number of steps