react-multistep

Responsive React multistep form component.

React 16.3.2

Examples showcase both Browserify and Webpack builds

List of forks

Instructions

To install this module run:

npm install react-multistep
Sh

next, require/import it inside of your app:

const MultiStep = import from ('react-multistep')
Sh

Props:

showNavigation 
type: boolean (default = true)
steps 
type: array of objects pointing to React components

Example:

const steps = [
              {name: 'StepOne', component: <StepOne/>},
              {name: 'StepTwo', component: <StepTwo/>},
              {name: 'StepThree', component: <StepThree/>},
              {name: 'StepFour', component: <StepFour/>}
            ];
<Multistep showNavigation={true} steps={steps}/>
JavaScript

To build included example with Browserify:

npm run build
Sh

or, with Webpack:

npm run build-with-webpack
Sh

Now open ./example/index.html in your favorite browser

Dev instructions

First clone the repository and then run:

npm install
Sh

To test run:

npm test
Sh

GitHub