CartButton

Import
import CartButton from 'react-storefront/CartButton'

Props

NameTypeDefaultDescription
pathstring'/cart'

The url path to cart. Defaults to "/cart"

serverbool

Set to true to force server side navigation. Defaults to false

classesobject

CSS classes

iconelement

Optional Custom cart icon

CSS API

You can override all the class names injected by Moov-PWA thanks to the classes property. This property accepts the following keys:

  • cartQuantity
  • icon