MoleculeDataCounter
is an input type number controller we can use to increase (+1) or decrease (-1) the value of such input.
$ npm install @s-ui/react-molecule-data-counter --save
import MoleculeDataCounter, {moleculeDataCounterSizes} from '@s-ui/react-molecule-data-counter'
<MoleculeDataCounter label="Label" id="demo1"/>
<MoleculeDataCounter label="Label" id="demo2" disabled/>
<MoleculeDataCounter label="Label" id="demo3" min={3} max={8} />
<MoleculeDataCounter label="Label" id="demo3" size={moleculeDataCounterSizes.SMALL} />
Find full description and more examples in the demo page.