Demos
StepIndicator in loose mode
Every step can be clicked.
You want to place <StepIndicator.Sidebar sidebar_id="unique-id-loose" />
somewhere in your layout.
Code Editor
const InteractiveDemo = () => { const [step, setStep] = React.useState(1) return ( <div style={{ display: 'flex', }} > <StepIndicator.Sidebar sidebar_id="unique-id-loose" /> <Space stretch> <StepIndicator sidebar_id="unique-id-loose" mode="loose" current_step={step} on_change={({ current_step }) => { setStep(current_step) }} data={[ 'Cum odio si bolig bla et ta', 'Auctor tortor vestibulum placerat bibendum sociis aliquam nunc sed venenatis massa eget duis', 'Bibendum sociis', ]} bottom /> <Button variant="secondary" on_click={() => { setStep((step) => { if (step >= 2) { step = -1 } return step + 1 }) }} > Next step </Button> </Space> </div> ) } render(<InteractiveDemo />)
StepIndicator in strict mode
Every visited step can be clicked, including the current step.
You want to place <StepIndicator.Sidebar sidebar_id="unique-id-strict" />
somewhere in your layout.