<hk-product-card>
hk-product-card: A product card for a product, customizable through named parts. Syntax, props, defaults and examples.
On this page
A product card for a product, customizable through named parts.
Group: Product. Name in the editor: Product card. Complete props for every tag: Tag reference.
Syntax
<hk-product-card>
<hk-part name="…">…</hk-part>
</hk-product-card>Children: Only <hk-part>.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
product | product | no | - | - | Product |
Required props
None. Every prop has a default or can be left out.
Examples
No example in the starter themes yet.
Related tags
hk-price: Formats a price, with an optional compare-at price, for a product or a fixed amount.hk-image: An image with alt text, dimensions, aspect ratio, fit, loading mode and radius.hk-add-to-cart: The add to cart button for a product, with quantity and sold-out states.hk-product-grid: A grid of product cards for a list of products, with a limit and columns.hk-product-gallery: A product's images as a gallery with thumbnails.hk-variant-picker: Lets the shopper choose a product's options and variant.
