beanloop / react-steppers

A package of React components to easily build advanced steppers.
https://beanloop.github.io/react-steppers/
Apache License 2.0
6 stars 0 forks source link

VerticalStepper not found #4

Closed galileoguzman closed 6 years ago

galileoguzman commented 6 years ago

I have installed react-step but when I try to use / implement a vertical stepper I get this error:

'VerticalStepper' was not found in 'react-step'

I am importing it with this

import { Stepper, StepperView, VerticalStepper, AdvanceButton, ReverseButton, DotTracker } from 'react-step';

I used react-toolbox but got an error about another library. Can you show me how should I implement the VerticalStepper component

drager commented 6 years ago

Hey @galileoguzman!

We had to change the name of this package due to package hijacking. So the package you should install is react-steppers. Please let me know if you got any problems with it.

galileoguzman commented 6 years ago

Resolved, thanks man!

galileoguzman commented 6 years ago

BTW I used this

import { Stepper, withStepper } from 'react-step';
import { VerticalStepper } from 'react-step/react-toolbox'

And the component with this:

<Stepper allowJumpAhead={allowJumpAhead} pages={pages}>
        {verticalStepper && <VerticalStepper activeColor="#64a6f4" canAdvance={false} canReverse={false} />}
</Stepper>

Note: wrapped on another component.

drager commented 6 years ago

@galileoguzman Are you importing from 'react-steppers' now? Can I close this issue? :)

galileoguzman commented 6 years ago

You can close it

galileoguzman commented 6 years ago

Just a question for you, Is there a way to change the icons ?

drager commented 6 years ago

You mean the vertical stepper's icons, that renders when status is set to alert or done? No, it's not possible to change those at the moment. I'm closing this now but feel free to open another issue/pull request to discuss the icons further.