Version: 2.0.0
CartContainer
Handles showing the user's cart items and starting the checkout flow, the user can also remove items from the cart.
#
Usage#
ReferenceCartContainer
#
#
PropsonSuccess
#
(cartItems) โ void
Callback function called when the user clicks the submit button.
#
Children componentsAlert
#
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.
#
PropsitemId
#
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.
#
Propsname
#
string?
The title displayed inside the button