Skip to main content
K
Last modified: 4/Oct/2024

Progress

The progress indicator may contain a pre-defined number of steps (ideally not less than 3) the user needs to go through in order to complete a setup (e.g. setting up a new domain). The purpose of this component is similar to the Stepper, but it puts more emphasis on the progress visually. It can also manage errors that may occur at any stage of the flow.

#Usage

import { Progress } from '@kinsta/stratus' const steps = [{ message: 'Step 1' }, { message: 'Step 2' }] const MyComponent = () => ( <Progress steps={steps} activeStep={1} /> )

#Props

#steps
Required
IStep[]
Steps of the progress
#isLoadingActive
boolean
Decides whether the active step is in loading state
#errorAfterActiveStep
string | boolean | ReactElement<any, string | JSXElementConstructor<any>>
Places an error message between two steps
#activeStep
number
Determines the active step of the progress
0