Skip to content

ProductDetails Container

Overview

The ProductDetails container component for the drop-in.

Version: 1.3.5

Configuration

The ProductDetails container provides the following configuration options:

ParameterTypeReq?Description
skustringYesConfiguration for sku
productDataProductModelNoData object for product
hideSkubooleanNoControls hiding of sku
hideQuantitybooleanNoControls hiding of quantity
hideShortDescriptionbooleanNoControls hiding of short description
hideDescriptionbooleanNoControls hiding of description
hideAttributesbooleanNoControls hiding of attributes
hideSelectedOptionValuebooleanNoControls hiding of selected option value
hideURLParamsbooleanNoControls hiding of u r l params
SKUSlotProps<DefaultSlotContext>NoConfiguration for s k u
RegularPriceSlotProps<DefaultSlotContext>NoConfiguration for regular price
SpecialPriceSlotProps<DefaultSlotContext>NoConfiguration for special price
OptionsSlotProps<DefaultSlotContext>NoAvailable options for
QuantitySlotProps<DefaultSlotContext>NoConfiguration for quantity
ActionsSlotProps< DefaultSlotContext & { appendButton: SlotMethod< Omit<ButtonPropsNoConfiguration for actions
textstringNoConfiguration for text
iconIconTypeNoConfiguration for icon
ShortDescriptionSlotProps<DefaultSlotContext>NoConfiguration for short description
DescriptionSlotProps<DefaultSlotContext>NoConfiguration for description
AttributesSlotProps<DefaultSlotContext>NoConfiguration for attributes
BreadcrumbsSlotProps< DefaultSlotContext & { setSeparator: SlotMethod<IconType>NoConfiguration for breadcrumbs
appendLinkSlotMethod< HTMLAttributes<HTMLAnchorElement> & { text?: string } >YesLink to append
appendHTMLElementSlotMethod<HTMLElement>YesConfiguration for append h t m l element
GalleryContentSlotProps<DefaultSlotContext>NoConfiguration for gallery content
InfoContentSlotProps<DefaultSlotContext>NoConfiguration for info content
ContentSlotProps<DefaultSlotContext>NoConfiguration for content
carouselCarouselConfigNoConfiguration for carousel
optionsConfigOptionsConfigNoConfiguration options for options
useACDLbooleanNoConfiguration for use a c d l
onAddToCart(values: Values) => voidNoCallback function triggered when add to cart
zoomType'zoom' | 'overlay'NoConfiguration for zoom type
closeButtonbooleanNoConfiguration for close button
disableDropdownPreselectionbooleanNoDisables dropdown preselection

Slots

This container exposes the following slots for customization:

SlotTypeRequiredDescription
slots\{ Title?: SlotProps&lt;DefaultSlotContext&gt;NoCustom slot for rendering slots

Usage

The following example demonstrates how to use the ProductDetails container:

import { ProductDetails } from '@dropins/storefront-pdp';
export default function MyComponent() {
return (
<ProductDetails
sku="PRODUCT-SKU-123"
appendLink="example"
appendHTMLElement={appendHTMLElement}
/>
);
}