Skip to content

Properties

PropertyTypeDescription
mode'static'
'strict'
'loose'
(required) Defines how the StepIndicator should work. Use static for non-interactive steps. Use strict for a chronological step order, also, the user can navigate between visited steps. Use loose if the user should be able to navigate freely.
dataStep Item[]
string[]
(required) Defines the data/steps showing up in a JavaScript Array or JSON format like [{title,isCurrent}]. See below for properties of STEP_DATA.
currentStepnumber(optional) Defines the initial step starting from 0. Also defines the furthest step visited when mode="strict". Will update to the new step if changed (but will not trigger the onChange event). Defaults to 0.
overviewTitlestring(optional) The title shown inside the <StepIndicatorModal /> supplemental screen reader text for the <StepIndicatorTriggerButton />. Defaults to Steps Overview.
stepTitlestring(optional) Label for <StepIndicatorTriggerButton /> and screen reader text for <StepIndicatorItem />. Must contain %step and %count to interpolate currentStep and stepCount into the text. Defaults to Step %step of %count.
hideNumbersboolean(optional) Define whether to show automatically counted numbers or not. Defaults to false.
noAnimationboolean(optional) If set to true, the height animation on step change and list expansion will be omitted. Defaults to false.
expandedInitiallyboolean(optional) Set to true to have the list be expanded initially. Defaults to false.
outsetboolean(optional) Whether or not to break out (using negative margins) on larger screens. Defaults to false. Same as outset in Card.
statusstring(optional) Text for status shown below the step indicator when it is not expanded. Defaults to undefined.
statusState['warn', 'info', 'error'](optional) The type of status shown when the status prop is set. Defaults to warn.
skeletonboolean(optional) If set to true, an overlaying skeleton with animation will be shown.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.

Step Item Properties

PropertyTypeDescription
titlestring
React.ReactNode
(required) The title of the step.
isCurrentboolean(optional) If set to true, this item step will be set as the current selected step. This can be used instead of currentStep on the main component.
inactiveboolean(optional) If set to true, this item step will be handled as an inactive step and will not be clickable. Defaults to false.
disabledboolean(optional) If set to true, this step will be handled the same as inactive as well as getting a disabled mouseover and aria-disabled="true. Defaults to false.
statusstring
React.ReactNode
(optional) Is used to set the status text.
statusState'warn'
'info'
'error'
(optional) In case the status state should be info or error. Defaults to warn.

Step Items example

const steps = [
{ title: 'Active' },
{ title: 'Active and marked as current', isCurrent: true },
{ title: 'Not active', inactive: true },
{ title: 'Disabled', disabled: true },
{
title: 'Active item with status text',
status: 'Status text',
statusState: 'warn', // defaults to warning
},
]

Translations

More info about translations can be found in the general localization and Eufemia Forms localization docs.

Keynb-NOen-GBsv-SEda-DK
StepIndicator.overviewTitleStegoversiktSteps OverviewStegöversiktTrinoverblik
StepIndicator.stepTitleSteg %step av %count:Step %step of %count:Steg %step av %countTrin %step af %count: