Skip to content

EmptyCart container

The EmptyCart container renders a message or component indicating that the cart is empty. It can provide navigation options to continue shopping or explore products.

EmptyCart container

EmptyCart container

Configurations

The EmptyCart container provides the following configuration options:

OptionTypeReq?Description
routeCTAfunctionNoCallback function that returns an empty cart.

Example configuration

The following example demonstrates how to render the EmptyCart container:

provider.render(EmptyCart, {
routeCTA: startShoppingURL ? () => startShoppingURL : undefined,
})($emptyCart),

`;