CartLineQuantity

The CartLineQuantity component renders a span element (or the type of HTML element specified by the as prop) with the cart line's quantity. It must be a descendent of a CartLineProvider component.

Example code

Alias

The CartLineQuantity component is aliased by the CartLine.Quantity component. You can use whichever component you prefer.

Component type

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