<hk-product-gallery>
hk-product-gallery: A product's images as a gallery with thumbnails. Syntax, props, defaults and examples.
On this page
A product's images as a gallery with thumbnails.
Group: Product. Name in the editor: Product gallery. Complete props for every tag: Tag reference.
Syntax
<hk-product-gallery />Children: None. The tag is self-closing.
Props
Write props as kebab-case attributes.
| Prop | Type | Required | Default | Allowed values | Editor label |
|---|---|---|---|---|---|
product | data | no | - | - | Product |
layout | select | no | thumbs-below | thumbs-below, thumbs-side, stacked | Gallery layout |
thumbnails | boolean | no | true | - | Thumbnails |
sizes | text | no | (min-width:1024px) 50vw, 100vw | - | Image sizes |
Required props
None. Every prop has a default or can be left out.
Examples
From packages/templates-default/theme/sections/product-main.snf, lines 15 to 15:
<hk-product-gallery product="{{ product }}" layout="{{ section.settings.gallery_layout }}" />Related tags
hk-price: Formats a price, with an optional compare-at price, for a product or a fixed amount.hk-product-card: A product card for a product, customizable through named parts.hk-product-grid: A grid of product cards for a list of products, with a limit and columns.hk-variant-picker: Lets the shopper choose a product's options and variant.
