Catalog npm
PACKAGE EXPLORERView in registry

2r-stepper

npm

2R library stepper component implemented in React

incrementreactreact-incrementreact-increment-componentreact-increment-pluginreact-stepperreact-stepper-componentreact-stepper-pluginstepper
Versions collected8
Direct dependencies19From release 1.1.1
Last observed20 Oct, 19:18 UTC

README

Current package documentation

2r-stepper

2R library stepper component implemented in React.

Instalation

2r-stepper is available as an npm package. Simply run npm install 2r-stepper command.

To use it in your project:

import stepper from '2r-stepper'; // ES6 syntax
var stepper = require('2r-stepper'); // ES5 syntax

Usage & API

The following props can be passed to the component:

  • initialValue (Number): at what value will the stepper start (defaults to 0)

  • stepValue (Number): by how much we increment/decrement at once (defaults to 1)

  • allowNegativeValues (Boolean): 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. Steps to run:

  • Clone the project and

  • Run npm install

  • Run gulp examples

  • Navigate to http://localhost:5000

License

This software is released under the terms of WTFPL v2.0 license.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 8

Collected releases
VersionPublishedDirect dependenciesOpen version
1.1.1Registry latest1 Sept 201519
1.1.022 Aug 201519
1.0.520 Aug 201518
1.0.420 Aug 201518
1.0.319 Aug 201518
1.0.219 Aug 201518
1.0.118 Aug 201518
1.0.017 Aug 201514

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
vladzelinschi/2r-stepper

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:c3da8c9fa5901ea44a116c32e1edf8d08b8e3dae3cccc2ef997303a63e6a858a