Skip to content

ProductQuantity

The ProductQuantity container manages and displays the quantity of a product that a shopper wants to purchase on the product details page.

The component listens for events to update its state and reflects the current quantity. It also provides a callback function onValue to handle changes in the quantity.

ProductQuantity configurations

The ProductQuantity container provides the following configuration options:

OptionTypeReq?Description
onValuefunctionNoCallback function to handle changes in the quantity.

Example

The following example demonstrates how to configure the ProductQuantity container:

return productRenderer.render(ProductDetails, {
onValue: (value) => console.log(value),
});