@manta-eu/react/stepper
Reference for @manta-eu/react/stepper as it is on main.
Type Aliases
StepperOrientation
StepperOrientation =
"horizontal"|"vertical"
StepperProps
StepperProps =
object
Properties
canSelectStep?
optionalcanSelectStep?: (index) =>boolean
Which steps are selectable; finished ones by default.
Parameters
index
number
Returns
boolean
caption?
optionalcaption?:boolean
className?
optionalclassName?:string
compact?
optionalcompact?:boolean
Markers only; horizontal steppers go compact below 30rem anyway.
completeLabel?
optionalcompleteLabel?:string
current
current:
number
Index of the current step; steps.length when all are done.
label?
optionallabel?:string
notStartedLabel?
optionalnotStartedLabel?:string
onStepSelect?
optionalonStepSelect?: (index) =>void
Makes finished steps selectable; without it the stepper only shows progress.
Parameters
index
number
Returns
void
orientation?
optionalorientation?:StepperOrientation
previousStep?
optionalpreviousStep?:number
The step shown before mount, such as on the last page; fills on from there.
started?
optionalstarted?:boolean
False before the flow starts: every step waits.
stepOfLabel?
optionalstepOfLabel?: (step,count) =>string
Announces the current step’s place; “Step 2 of 4” by default.
Parameters
step
number
count
number
Returns
string
steps
steps:
StepperStep[]
StepperStatus
StepperStatus =
"complete"|"current"|"upcoming"|"error"
StepperStep
StepperStep =
object
Properties
description?
optionaldescription?:string
error?
optionalerror?:string
Marks the step failed; replaces the description.
icon?
optionalicon?:ReactNode
Replaces the step’s number; finished steps still show the check.
id
id:
string
Stable across renders, so each step keeps its motion.
label
label:
string
status?
optionalstatus?:StepperStatus
For steps that don’t finish in order; follows current by default.
Functions
Stepper()
Stepper(
props):Element
Parameters
props
Returns
Element