Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

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),

`;