question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request to add Stepper component

See original GitHub issue

What’s everyone’s thoughts on including a Stepper component and whether that would be a consideration? I believe it’s quite a common use case for multi-step forms / wizards, and having a built in solution would be great.

I recently had to implement one in a project I was working on, and would be happy to have a go at implementing it, but would like to use this thread as an opportunity to discuss the potential API and how it would work?

Currently how I have set mine up is to simply pass the “steps” as children of the stepper component and then handle the logic the split them into their respective steps inside the Stepper component, so usage would look something like this:

<Stepper activeStep={step}>
  <H5>Step 1 Content</H5>
  <H5>Step 2 Content</H5>
  <H5>Step 3 Content</H5>
  <H5>Step 4 Content</H5>
</Stepper>

The above would render this:

stepper

This would give the user total control over what gets rendered as well as incrementing / decrementing the current active step, although I’m open to suggestions as to alternatives. I’m also not sure about wai-aria specifications for Steppers / wizards (or if there are any) so any help there would be much appreciated.

Look forward to hearing your thoughts!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:68
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

37reactions
jeanverstercommented, Jun 1, 2021

For anyone that happens to come across this, I have recently published a standalone steps component designed to work with Chakra UI if anyone’s interested 🙂

https://github.com/jeanverster/chakra-ui-steps

33reactions
with-heartcommented, Nov 26, 2020

Thanks for the idea @jeanverster but I’m going to close this issue as part of our backlog cleanup as we have no plans to implement something like this soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Steppers - Components - Material Design
Steppers convey progress through numbered steps. Steppers display progress through a sequence of logical and numbered steps.
Read more >
Designing a Stepper Form in ReactJS - GeeksforGeeks
We will create a vertical stepper and add a form container to it. At all stages of stepper-form, we will add different details....
Read more >
How To Add Stepper And Tabs in React Applications
Let's first create a React application using the following command. ... Add the following code in Stepper component.
Read more >
Bootstrap 4 Steps (Stepper) - examples & tutorial.
Bootstrap stepper is a component that displays content as a process with defined by user milestones. Following steps are separated and connected by...
Read more >
Material UI in React #7 - Stepper component with ... - YouTube
I am happy to share part number seven of the series. In today's episode you will learn how to create a reusable Stepper...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found