The product details page (PDP) drop-in component provides slots for nearly every part of its UI. The default UI controls for these PDP slots are described below.
PDP slots
Title: Uses HTML elements to display the product’s title.
SKU: Uses HTML elements to display the product’s SKU (Stock Keeping Unit).
RegularPrice: Uses our Price control to display the regular price of the product.
SpecialPrice: Uses our Price control to highlight a special or discounted price.
Options: Uses our TextSwatch, ColorSwatch, or ImageSwatch to display product options like sizes, colors, or images.
Quantity: Uses our Incrementer control to display the quantity of the product being viewed or purchased.
Actions: Typically uses our Button controls and the onClick handler to add products to the cart or wishlist.
ShortDescription: Uses HTML elements to display a brief description or summary of the product.
Description: Uses HTML elements to display the main description area for detailed information about the product.
Attributes: Uses HTML elements to display additional product attributes like weight, dimensions, or material.
PDP SlotProps
The slots for product details are defined in the ProductDetailsProps interface. Each slot comes with a set of primitive functions and may be extended with custom functions, such as appendButton.
Example customizations
Here are some examples of how you can customize the product details component using the slots:
Title
Adding a decoration to the product title, as well as a ratings element.
SKU
Append some copy with strikethrough to the SKU when out of stock.
Regular Price
Special Price
Options
Quantity
Adding some translated copy to the Quantity field.
Actions
Short Description
Description
Attributes
GalleryContent
InfoContent
Content
Summary
The product details component provides slots for nearly every part of its UI, allowing you to customize every detail to create a unique and branded experience for your customers.