Skip to main content

CartRelatedItems

Need storefront configuration?

Use the public API origin, merchant slug, and location ID. Storefront components never receive a Crave API key; register each exact browser origin before making requests.
A horizontal carousel displayed within or below the cart panel that suggests related or complementary items to encourage upselling.

Preview

Import

Usage

Props

Product[]
required
Array of suggested products to display.
(product: Product) => void
required
Callback fired when a suggested item’s add button is clicked.

Behavior

  • Shows compact product cards with image, name, price, and quick-add button
  • Horizontally scrollable with peek effect
  • Items are determined by the backend based on cart contents
  • Hidden when no suggestions are available