CartRelatedItems
Need an API key?
Get one from Crave Dashboard > Developers > API Development > Step 1 - API Keys. Copy the matching
locationId from Step 2 - Location IDs on the same page.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