Skip to content

Instantly share code, notes, and snippets.

@JustAyush
Created June 8, 2019 13:04
Show Gist options
  • Save JustAyush/7799a06f11078e17be0d64aac63120d3 to your computer and use it in GitHub Desktop.
Save JustAyush/7799a06f11078e17be0d64aac63120d3 to your computer and use it in GitHub Desktop.
<NumericInput
value={4}
onChange={value =>{
let { quantityInput } = this.state;
quantityInput[index] = {
quantity: value,
element_id: item.id
};
this.setState({
quantityInput: quantityInput
});
}
}
minValue = {0}
maxValue = {item.quantity}
onLimitReached={(isMax,msg) => console.log(isMax,msg)}
totalWidth={100}
totalHeight={50}
iconSize={20}
step={1}
valueType='real'
rounded
textColor='#B0228C'
iconStyle={{ color: 'white' }}
rightButtonBackgroundColor='#EA3788'
leftButtonBackgroundColor='#E56B70'/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment