ProgressProps
ProgressProps =
object
Properties
getCssClassForStep()?
optionalgetCssClassForStep: (step) =>Record<string,boolean|undefined>
A function to define custom css classes for each step. If not defined the following classes will be used:
{
"progress-step-completed": step.completed,
"progress-step-active": step.isCurrentStep,
"progress-step-success": step.success === true,
"progress-step-failed": step.success === false,
"progress-step-skipped": step.skipped,
}
Parameters
step
Returns
Record<string, boolean | undefined>
steps
steps:
Step[]
The steps to be displayed in the progress gadget.
gadgetPrimaryColor?
optionalgadgetPrimaryColor:string
The primary color of the gadget.
largeIcons?
optionallargeIcons:boolean
Whether to use large icons or not.
Default
false
isError?
optionalisError:boolean
Whether the process the gadget represents is in an error state or not.
Default
false
customStyles?
optionalcustomStyles:object
Some custom variables to alter the appearance of the gadget.
gadgetAnimationSpeed?
optionalgadgetAnimationSpeed:string
How fast the progress animation should be.
Default
"400ms"
iconsSize?
optionaliconsSize:string
The size of the icons, if largeIcons is set to false.
Default
"2rem"
iconsSizeXXL?
optionaliconsSizeXXL:string
The size of the icons, if largeIcons is set to true.
Default
"3rem"
inactiveColor?
optionalinactiveColor:string
The color for all steps not yet completed.
Default
"#e6e7e8"
iconColor?
optionaliconColor:string
The icon color for all steps not yet completed.
Default
"#808080"
errorBackgroundColor?
optionalerrorBackgroundColor:string
The background color on any non-successful step.
Default
"#e53935"
errorBorderColor?
optionalerrorBorderColor:string
The border color on any non-successful step.
Default
"#b71c1c"
Default
undefined