Skip to content

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

OrderSummaryLine Container

Individual line item in the order summary displaying label and price.

Version: 1.0.0-beta5

Configuration

The OrderSummaryLine container provides the following configuration options:

ParameterTypeReq?Description
labelVNode | stringYesLabel text or component for the line item.
priceVNode<HTMLAttributes<HTMLSpanElement>>YesPrice component for the line item.
classSuffixesArray<string>NoProvides an array of CSS class suffixes for styling variants. Use to apply different visual styles to order summary line items based on their type or context.
labelClassSuffixstringNoCSS class suffix specifically for the label.
testIdstringNoTest ID for automated testing.
childrenanyNoChild elements to render within the container

Slots

This container does not expose any customizable slots.

Usage

The following example demonstrates how to use the OrderSummaryLine container:

import { render as provider } from '@dropins/storefront-quote-management/render.js';
import { OrderSummaryLine } from '@dropins/storefront-quote-management/containers/OrderSummaryLine.js';
await provider.render(OrderSummaryLine, {
label: label,
price: price,
classSuffixes: [],
})(block);