Package Exports
- react-simple-stepper
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-simple-stepper) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-simple-stepper
A simple stepper component implemented in React.
Instalation
You can directly install it via npm
using npm install react-simple-stepper
command.
In ES6
syntax you would import it with the command: import stepper from 'react-simple-stepper';
.
In ES5
syntax you would write: var stepper = require('react-simple-stepper');
Usage & API
The following props can be passed to the stepper component:
initialValue
: at what value will the stepper start (defaults to0
)stepValue
: by how much we increment/decrement at once (defaults to1
)allowNegativeValues
: whether we want our stepper to go below0
or not. The decrement button will be disabled in caseallowNegativeValues
isfalse
and either current value is0
or the difference between the current value and the step value goes below0
(defaults tofalse
)
Examples
There is an examples folder inside the project with a minimum config. To run it, first clone the project and then run npm install
followed by gulp examples
and navigate to http://localhost:5000
.