Skip to content
Hekana Spray
Documentation
Getting started
Theme development
Components and tags

Localization

Apps and custom code

Examples and recipes
API reference
Publishing
Build apps
AI development

<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

html
<hk-product-card>
  <hk-part name="…">…</hk-part>
</hk-product-card>

Children: Only <hk-part>.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
productproductno--Product

Required props

None. Every prop has a default or can be left out.

Examples

No example in the starter themes yet.

  • 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.

Next steps