Skip to content

os-single-product (Single Product Card)

os-single-product fetches one product by slug and renders a product card with pricing, add-to-cart, and optional subscribe action.

os-single-product (Single Product Card)

nametyperequireddefaultdescription
product-slugstringYesNoneProduct slug used to fetch product card data.
product-full-urlstringNoNoneFull URL used for product-page navigation (takes precedence over product-url-prefix).
product-url-prefixstringNoNoneURL prefix used to build product-page URLs with product-slug when product-full-url is not provided.
disable-product-page-linkbooleanNofalseDisables product-card link behavior to the product page when supported by the card UI.
index.html
<os-single-product
product-slug="my-product-slug"
product-url-prefix="/products"
></os-single-product>

Single Product Card screenshot