Skip to content

os-product-list (Product List)

os-product-list loads available collections and renders a filterable list of products using os-single-product cards.

os-product-list (Product List)

nametyperequireddefaultdescription
product-url-prefixstringNoNonePrefix used to build product page URLs for child os-single-product cards (for example /products).
shop.html
<os-product-list product-url-prefix="/products"></os-product-list>

Product List screenshot

The product list renders the collection filter chips plus a responsive product grid. The chips expose these variables, in addition to the global tokens inherited by every component. (The grid columns are responsive and not exposed as variables.)

CSS variable Default
--os-chip-bg #f1f5f9
--os-chip-color var(--os-foreground)
--os-chip-hover-bg var(--os-border)
--os-chip-active-bg var(--os-primary)
--os-chip-active-color #fff
--os-chip-padding 6px 16px
--os-chip-radius 8px
--os-chip-font-size 16px
--os-chip-font-weight 500
--os-chip-line-height 1.5