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
Anchor link to section titled "Example code"
Name | Type | Description |
---|---|---|
adjust | "increase" | "decrease" | "remove" |
The adjustment for a cart line's quantity. Valid values: increase (default), decrease , or remove . |
children | ReactNode |
Any ReactNode elements. |
onClick? | (event?: React.MouseEvent< |
A click event handler. Default behaviour triggers the click event, unless prevented. |
buttonRef? | Ref< |
A reference to the underlying button. |
as? | React.ElementType with button as default |
Provides a React element or component to render as the underlying button. For accessibility compliance, use either a button element or a component that renders an underlying button. |
Component type
Anchor link to section titled "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.