CartLineQuantityAdjustButton

The CartLineQuantityAdjustButton component renders a button that adjusts the cart line's quantity when pressed. It must be a descendent of a CartLineProvider component.

Example code

Props

Name Required Description
adjust No The adjustment for a cart line's quantity. Valid values: increase (default), decrease, or remove.
children Yes Any ReactNode elements.

Alias

The CartLineQuantityAdjustButton component is aliased by the CartLine.QuantityAdjust component. You can use whichever component you prefer.

Component type

The CartLineQuantityAdjustButton component is a shared component, which means that it renders on both the server and the client. For more information about component types, refer to React Server Components.