Code
Props
Props should be passed as attributes to the component element.Whether the product is out of stock. Setting this to
true will disable the add to cart button and show an out of stock message.Defaults to falseThe product type of the product being added to the cart.One of
physical, bundle, event, subscription, voucher.A voucher at a fixed price adds straight to the cart. The amount chooser opens only when there’s an amount to pick or one to type.Defaults to physicalThe most one customer may buy. The quantity stepper stops there and says Max followed by the number per customer.Leave it off and the button looks up the product’s own per-customer limit.
The fewest that may be added. The quantity starts here and the stepper won’t go below it.Defaults to
1Related products to add with the main product.
Styling
The following parts are available to style the add to cart component:The loading spinner displayed instead of the button text when the add to cart action is being performed.
The back-in-stock button, when Back in Stock Notifications are on.

