Web Components · Product Detail (PDP)
<mmm-pdp-quantity>
Quantity stepper with min/max guards.
What it is
Numeric stepper for quantity selection. Reflects stock limits from the active variant.
When to use
- Inside the buy box
- Bundle builders
Attributes
AttributeTypeDefaultDescription
data-minnumber1Minimum allowed value.data-maxnumberstockMaximum — defaults to available stock.idstring—Unique element identifier.classstring—Custom CSS class list.hiddenbooleanfalseHide the element without removing it from the DOM.Examples
Default
Stepper bound to the active variant.
<mmm-pdp-quantity></mmm-pdp-quantity>