Cart Page component

Structural page component for the shopping cart. This is the main component used in the /cart route in Venia. It uses child components to render the different pieces of the cart page.

Returns: ** **See: https://venia.magento.com/cart
Parameters

Name Type Description
props Object  
props.classes Object CSS className overrides for the component. See cartPage.module.css for a list of classes you can override.

Example (Importing into your project)

import CartPage from "@magento/venia-ui/lib/components/CartPage";

Source Code: pwa-studio/packages/venia-ui/lib/components/CartPage/cartPage.js

Talon

The Cart Page component uses the useCartPage() talon to perform side effects and calculate the values for rendering the JSX content.