Skip to content

Latest commit

 

History

History
69 lines (53 loc) · 1.77 KB

README.md

File metadata and controls

69 lines (53 loc) · 1.77 KB

Responsive React multistep form component

React 15.3.1 - Babel 6.5.0 - Browserify 13.1.1

#####(Webpack version is here: https://github.com/Srdjan/react-multistep-with-webpack)

version downloads MIT License

NPM

=========================================

=========================================

Working demo

[List of forks] (https://github.com/srdjan/react-multistep/network/members)

Instructions

To install this module run:

npm install react-multistep

next, require it inside of your app:

var Multistep = require('react-multistep').Multistep

Configuration:

showNavigation type: boolean (by default = true)
steps type: array of objects

Example:

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

To build included example:

npm run build

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

Dev instructions

First clone the repository and then run:

npm install

To test run:

npm test