Quantity input
A native input type="number" that works on its own. A small script adds
the minus and plus buttons’ behaviour, respecting min and max, and fires
a change event after each step.
Options
Section titled “Options”label,id: required. The buttons are labelled “Decrease” and “Increase” followed by the label in lower casehideLabel: keeps the label for screen readers onlyvalue: starting quantity (default1)min,max: limits (default1and99)size:compact,regular(default)- Any other
inputattribute is passed to the field
<QuantityInput id="quantity" name="quantity" label="Quantity" />