Skip to content

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

OrderSummary Container

Overview

The OrderSummary container component for the drop-in.

Version: 1.5.1

Configuration

The OrderSummary container provides the following configuration options:

PropertyTypeRequiredDescription
ParameterTypeReq?Description
routeCheckout(context: CheckoutRouteContext) => stringNoCallback function for route checkout
CouponsSlotPropsNoConfiguration for coupons
GiftCardsSlotPropsNoConfiguration for gift cards

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
slots{ EstimateShipping?: SlotPropsNoCustom slot for rendering slots

Usage

The following example demonstrates how to use the OrderSummary container:

import { OrderSummary } from '@dropins/storefront-cart';
export default function MyComponent() {
return (
<OrderSummary
routeCheckout=() => {}
Coupons={Coupons}
GiftCards={GiftCards}
/>
);
}