JSPM

react-simple-stepper

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q25410F
  • License GPL-2.0

A simple stepper implemented in React

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 to 0)
  • stepValue: by how much we increment/decrement at once (defaults to 1)
  • allowNegativeValues: whether we want our stepper to go below 0 or not. The decrement button will be disabled in case allowNegativeValues is false and either current value is 0 or the difference between the current value and the step value goes below 0 (defaults to false)

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.