New! Stepper is in beta, the API is subject to change. Feel free to test it out and let us know what you think! This component is available on thestable branch.
Stepper
guides users through the steps of a multi-step process, showing progress and the status of each step.
Function that will be called with the clicked step's 'id' when 'clickableSteps' is true and a step is clicked.
function() => {}The steps to display. 'id' uniquely identifies the step and is used to match against 'currentStep'. 'title' is the step label. 'description' is optional supporting text shown when 'showDescription' is true. 'status' indicates the state of the step. 'disabledReason' is shown when the step's status is "disabled". 'errorMessage' is shown when the step's status is "error". 'children' allows for an array of sub-steps nested under a step, following the same shape.
array
[
{
id: "string",
title: "string",
description: "string",
status: "...",
disabledReason: "string",
errorMessage: "string",
children: [
{
id: "string",
title: "string",
description: "string",
status: "...",
disabledReason: "string",
errorMessage: "string",
}
],
}
]
where status could be:
"pending"
"completed"
"error"
"disabled"
The color of the line connecting to the next step.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator when hovered.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon size used within a sub-step's indicator.
string"small"
The color of the step title.
stringA hex, name, or rgb value.
"text-weak"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator when hovered.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon size used within a sub-step's indicator.
string"small"
The color of the step title. Can be an object to differentiate colors between dark and light modes.
objectAn object with a color for dark and light modes.
{ dark: "text-strong", light: "brand" }The background of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator when hovered.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon shown in the step indicator.
element<FormCheckmark />
The size of the icon shown in the step indicator.
string"medium"
The icon size used within a sub-step's indicator.
string"small"
The color of the step title. Can be an object to differentiate colors between dark and light modes.
objectAn object with a color for dark and light modes.
{ dark: "text-strong", light: "brand" }The background of the step indicator.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator when hovered.
stringA hex, name, or rgb value.
"white"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon shown in the step indicator.
element<StatusCriticalSmall />
The icon size used within a sub-step's indicator.
string"small"
The color of the step title.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The color of a step's description.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The color of the line connecting to the next step.
stringA hex, name, or rgb value.
"border"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator.
stringA hex, name, or rgb value.
"background-contrast"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"border"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon color of the step indicator.
stringA hex, name, or rgb value.
"text-weak"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon size used within a sub-step's indicator.
string"small"
The color of the step title.
stringA hex, name, or rgb value.
"text-weak"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The color of the line connecting to the next step.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The color of the step's helper/error text.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"status-critical"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator when hovered.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon size used within a sub-step's indicator.
string"small"
The color of the step title.
stringA hex, name, or rgb value.
"text"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The color of a step's helper text.
stringA hex, name, or rgb value.
"brand"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The text size of a step's helper text, shown for a step in the "error" status.
string"xsmall"
The color of the line connecting to the next step.
stringA hex, name, or rgb value.
"border"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator.
stringA hex, name, or rgb value.
"text-xweak"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon or text color of the step indicator.
stringA hex, name, or rgb value.
"text-strong"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The background of the step indicator when hovered.
stringA hex, name, or rgb value.
"background-front"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The border color of the step indicator when hovered.
stringA hex, name, or rgb value.
"text-strong"
objectAn object with a color for dark and light modes.
{ dark: "string", light: "string" }The icon size used within a sub-step's indicator.
string"small"