🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More →
Socket
Book a DemoSign in
Socket

react-quantity-picker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-quantity-picker

Quantity input picker for react

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

React quantity picker

React component that helps user select item quantity easily. Designed to work together with Bootstrap Button component. Supports Bootstrap's Buttons component classes.

Quickstart

  • npm install --save react-quantity-picker
  • Import component: var QtyPicker = require('react-quantity-picker')

Usage:

var QtyPicker = require('react-quantity-picker')

var value = 1

<QtyPicker
  value = { value }
  onChange = { function (newValue) { value = newValue } } />

See src/example/example.js for more

Component properties

prop#value (Number)

Required. Define the value of the component.

prop#onChange (Function)

Required. This function is triggered when picker value changes.

Example:

function handleChange(newValue) {
  console.log(newValue)
}

prop#btnCount (Number)

Optional. Define how many buttons are shown.

Keywords

react

FAQs

Package last updated on 03 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts