Skip to content

os-product-details (Product Details)

os-product-details fetches one product by slug and renders a full PDP-style experience, including media gallery, attribute selectors, purchase options, and add-to-cart.

os-product-details (Product Details)

nametyperequireddefaultdescription
product-slugstringYesNoneProduct slug used to fetch and render product details.
product.html
<os-product-details product-slug="my-product-slug"></os-product-details>

Product Details screenshot

Product details is themed primarily through the global tokens (--os-foreground, --os-muted-foreground, --os-primary, --os-primary-foreground, --os-border) inherited by every component.

Its variant dropdown selector additionally exposes these:

CSS variable Default
--os-select-background-color #ffffff
--os-select-border-color var(--os-border)
--os-select-hover-background-color #f0f0f0
--os-select-checked-background-color #f0f0f0
--os-select-checkmark-color #025712
--os-select-font-size 16px