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

The EmptyCart container provides the following configuration options:

ParameterTypeRequiredDescription
routeCTAfunctionNoCallback function that returns an empty cart.

The following example demonstrates how to render the EmptyCart container:

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

`;