Version: 3.5.2
CartContainer
Handles showing the user's cart items and starting the checkout flow, the user can also remove items from the cart.
Usage#
Reference#
CartContainer#
Props#
onSuccess#
(cartItems) โ void
Callback function called when the user clicks the submit button.
Children components#
Alert#
Displays the relevant errors or success messages.
CartRemoveItemButton#
Instance of Button
A button that reduces the quantity of a certain cart item by 1, and removes it in case the quantity is equal to 1.
Props#
itemId#
number
the id of the item to remove.
CartTotalPrice#
A text that shows the total price of the cart items. shows nothing if the cart is showing any alerts.
CartSubmit Required#
Instance of Button
A button component that starts the checkout flow.
Props#
name#
string?
The title displayed inside the button