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

Tag reference

Every built-in hk-* tag and its props: layout, typography, media, buttons, cards and commerce tags such as hk-price and hk-product-grid.

Each tag also has its own page with syntax, props, real examples and related tags: see Components and tags.

On this page

30 built-in hk-* tags. Write props as kebab-case attributes (padding-y sets the prop paddingY). A responsive prop also takes tablet-<attr> (≤ 1023px) and mobile-<attr> (≤ 639px); a prefix on any other prop is SN2004. Unknown props are SN2004, missing required props SN2005, children a tag does not accept SN2006.

Every tag also accepts the passthrough attributes class, id, role, title, data-* and aria-*, written on its root element (class and id reduced to safe tokens; data-hk-* is reserved and dropped). They are not listed per tag.

Colour props take #hex or theme:<token> (e.g. theme:accent → var(--hk-color-accent)); anything else is ignored. Number props are clamped to their range when rendered.

Built into the language (not in the registry): <hk-schema> (settings JSON), <hk-slot name="content" /> and <hk-sections /> (layout and templates only), <hk-block of="{{ block }}" /> (renders a block inside a section), <hk-part name="…"> (fills a named part of a tag that has parts, such as hk-product-card). See language.mdx.

<hk-section>Open page

Section

Categorylayout
Childrenany content (elements, hk-* tags, text)
Responsive propspadding-y
AttributeTypeDefaultResponsiveOptions / rangeLabel
full-bleedbooleanfalseno—Full bleed
backgroundcolor—no—Background
padding-ynumber64yes: tablet-padding-y mobile-padding-ymin 0, max 240Vertical padding

<hk-container>Open page

Container

Categorylayout
Childrenany content (elements, hk-* tags, text)
Responsive propspadding-x
AttributeTypeDefaultResponsiveOptions / rangeLabel
max-widthnumber—nomin 200, max 1920Max width
padding-xnumber16yes: tablet-padding-x mobile-padding-xmin 0, max 120Horizontal padding

<hk-stack>Open page

Stack

Categorylayout
Childrenany content (elements, hk-* tags, text)
Responsive propsdirection gap
AttributeTypeDefaultResponsiveOptions / rangeLabel
directionselectcolumnyes: tablet-direction mobile-directionrow, columnDirection
gapnumber16yes: tablet-gap mobile-gapmin 0, max 160Gap
alignselect—nostart, center, end, stretchAlign
justifyselect—nostart, center, end, betweenJustify
wrapbooleanfalseno—Wrap

<hk-grid>Open page

Grid

Categorylayout
Childrenany content (elements, hk-* tags, text)
Responsive propscolumns gap
AttributeTypeDefaultResponsiveOptions / rangeLabel
columnsrange3yes: tablet-columns mobile-columnsmin 1, max 12Columns
gapnumber24yes: tablet-gap mobile-gapmin 0, max 160Gap
min-itemnumber—nomin 80, max 600Min item width

<hk-section-group>Open page

Shared section group

Categorylayout
Childrennone (self-closing: <hk-section-group … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
nameselect—noheader, footer, announcement, requiredGroup

<hk-heading>Open page

Heading

Categorytypography
Childrennone (self-closing: <hk-heading … />)
Responsive propssize
AttributeTypeDefaultResponsiveOptions / rangeLabel
texttext""no—Text
levelselecth2noh1, h2, h3, h4Level
sizenumber—yes: tablet-size mobile-sizemin 12, max 160Size
alignselect—nostart, center, endAlign
colorcolor—no—Colour

<hk-text>Open page

Text

Categorytypography
Childrennone (self-closing: <hk-text … />)
Responsive propssize
AttributeTypeDefaultResponsiveOptions / rangeLabel
texttextarea""no—Text
sizenumber—yes: tablet-size mobile-sizemin 10, max 64Size
alignselect—nostart, center, endAlign
colorcolor—no—Colour

<hk-rich-text>Open page

Rich text

Categorytypography
Childrennone (self-closing: <hk-rich-text … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
htmlrich_text""no—Rich text

<hk-badge>Open page

Badge

Categorytypography
Childrentext and {{ }}
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
texttext—no—Text
toneselectaccentnoaccent, neutral, success, warningTone

<hk-image>Open page

Image

Categorymedia
Childrennone (self-closing: <hk-image … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
srcimage—no—Image
alttext""no—Alt text
widthnumber—nomin 16, max 2400Width
heightnumber—nomin 16, max 2400Height
sizestext100vwno—Image sizes
aspect-ratioselect—no1/1, 4/5, 3/4, 16/9, 21/9Aspect ratio
fitselectcovernocover, containFit
loadingselectlazynolazy, eagerLoading
radiusnumber—nomin 0, max 200Radius

<hk-icon>Open page

Icon

Categorymedia
Childrennone (self-closing: <hk-icon … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
nameselect—noarrow-left, arrow-right, arrow-up-right, chevron-left, chevron-right, chevron-down, chevron-up, check, x, plus, minus, menu, search, shopping-cart, shopping-bag, heart, star, user, mail, phone, map-pin, truck, package, gift, tag, credit-card, wallet, banknote, percent, clock, calendar, download, upload, file, file-text, image, play, pause, volume-2, globe, lock, shield-check, info, alert-circle, help-circle, message-circle, share-2, external-link, link, copy, trash-2, settings, filter, sliders-horizontal, grid, list, home, store, sparkles, zap, flame, trophy, gamepad-2, headphones, monitor, smartphone, book-open, graduation-cap, code, layers, key, cpu, cable, chart-no-axes-column, radio-tower, battery-charging, plug, wrench, requiredIcon
sizerange20nomin 12, max 96Size
strokerange2nomin 1, max 3, step 0.5Stroke
labeltext—no—Label

<hk-button>Open page

Button

Categoryui
Childrennone (self-closing: <hk-button … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
labeltext""no—Label
hreflink#no—Link
variantselectsolidnosolid, outline, ghostStyle
sizeselectmdnosm, md, lgSize
iconselect—noarrow-left, arrow-right, arrow-up-right, chevron-left, chevron-right, chevron-down, chevron-up, check, x, plus, minus, menu, search, shopping-cart, shopping-bag, heart, star, user, mail, phone, map-pin, truck, package, gift, tag, credit-card, wallet, banknote, percent, clock, calendar, download, upload, file, file-text, image, play, pause, volume-2, globe, lock, shield-check, info, alert-circle, help-circle, message-circle, share-2, external-link, link, copy, trash-2, settings, filter, sliders-horizontal, grid, list, home, store, sparkles, zap, flame, trophy, gamepad-2, headphones, monitor, smartphone, book-open, graduation-cap, code, layers, key, cpu, cable, chart-no-axes-column, radio-tower, battery-charging, plug, wrenchIcon
icon-positionselectstartnostart, endIcon position

<hk-card>Open page

Card

Categoryui
Childrenany content (elements, hk-* tags, text)
Responsive propspadding
AttributeTypeDefaultResponsiveOptions / rangeLabel
backgroundcolor—no—Background
radiusnumber12nomin 0, max 64Radius
paddingnumber16yes: tablet-padding mobile-paddingmin 0, max 96Padding
borderbooleanfalseno—Border
shadowselectnonenonone, sm, md, lgShadow

<hk-search-form>Open page

Search form

Categoryui
Childrennone (self-closing: <hk-search-form … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
placeholdertext—no—Placeholder
labeltext""no—Label
button-labeltext—no—Button text
show-labelbooleanfalseno—Show label
iconbooleantrueno—Search icon

<hk-pagination>Open page

Pagination

Categoryui
Childrennone (self-closing: <hk-pagination … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
paginatedata—no—Pagination data

<hk-locale-switch>Open page

Language switch

Categoryui
Childrennone (self-closing: <hk-locale-switch … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
displayselectnamenoname, codeDisplay
localizationdata—no—Localization data

<hk-custom-html>Open page

Custom HTML

Categoryui
Childrennone (self-closing: <hk-custom-html … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
htmltextarea""nomax length 30000HTML
csstextarea""nomax length 10000CSS

<hk-announcement>Open page

Announcement bar

Categoryui
Childrennone (self-closing: <hk-announcement … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
m1text""nomax length 160Message 1
l1link""no—Message 1 link
m2text""nomax length 160Message 2
l2link""no—Message 2 link
m3text""nomax length 160Message 3
l3link""no—Message 3 link
m4text""nomax length 160Message 4
l4link""no—Message 4 link
m5text""nomax length 160Message 5
l5link""no—Message 5 link
m6text""nomax length 160Message 6
l6link""no—Message 6 link
motionselectstaticnostatic, rotate, marqueeMotion
speednumber5nomin 1, max 10Speed
colorcolor—no—Text colour
dismissiblebooleanfalseno—Close button

<hk-price>Open page

Price

Categorycommerce
Childrennone (self-closing: <hk-price … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
amountnumber—no—Price
compare-atnumber—no—Compare at
formatselect—nodecimal, wholeNumber format
productdata—no—Product with variants

<hk-product-card>Open page

Product card

Categorycommerce
Children<hk-part>
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
productproduct—no—Product

Parts, each filled with <hk-part name="…"> directly inside the tag: badge, actions.

<hk-product-grid>Open page

Product grid

Categorycommerce
Childrennone (self-closing: <hk-product-grid … />)
Responsive propscolumns
AttributeTypeDefaultResponsiveOptions / rangeLabel
productscollection—no—Products
limitrange8nomin 1, max 48Count
columnsrange4yes: tablet-columns mobile-columnsmin 1, max 6Columns

Product gallery

Categorycommerce
Childrennone (self-closing: <hk-product-gallery … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
productdata—no—Product
layoutselectthumbs-belownothumbs-below, thumbs-side, stackedGallery layout
thumbnailsbooleantrueno—Thumbnails
sizestext(min-width:1024px) 50vw, 100vwno—Image sizes

<hk-variant-picker>Open page

Variant picker

Categorycommerce
Childrennone (self-closing: <hk-variant-picker … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
productdata—no—Product
displayselectautonoauto, swatches, buttons, selectPicker style

<hk-add-to-cart>Open page

Add to cart

Categorycommerce
Childrennone (self-closing: <hk-add-to-cart … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
productdata—no—Product
labeltext—no—Button label
choose-labeltext—no—Choose options label
sold-out-labeltext—no—Sold out label
quantitybooleantrueno—Quantity picker
variantselectsolidnosolid, outlineButton style

<hk-cart-count>Open page

Cart count

Categorycommerce
Childrennone (self-closing: <hk-cart-count … />)
Responsive propsnone

No props.

<hk-cart-items>Open page

Cart items

Categorycommerce
Children<hk-part>
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
checkout-labeltext—no—Cart link label (no JavaScript)

Parts, each filled with <hk-part name="…"> directly inside the tag: empty.

<hk-cart-summary>Open page

Cart summary

Categorycommerce
Childrennone (self-closing: <hk-cart-summary … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
subtotal-labeltext—no—Subtotal label
checkout-labeltext—no—Checkout button label

<hk-cart-drawer>Open page

Cart drawer

Categorycommerce
Childrenany content (elements, hk-* tags, text)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
titletext—no—Drawer title
open-on-addbooleantrueno—Open when an item is added

<hk-inline-checkout>Open page

Order form

Categorycommerce
Childrennone (self-closing: <hk-inline-checkout … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
productdata—no—Product
labeltext""no—Form name for screen readers

<hk-app-block>Open page

App block

Categorycommerce
Childrennone (self-closing: <hk-app-block … />)
Responsive propsnone
AttributeTypeDefaultResponsiveOptions / rangeLabel
appselect—nocustomer_subscriptions, requiredApp
blockselect—nosubscribe, portal, requiredBlock
productdata—no—Product
settingsdata—no—Settings
labeltext""nomax length 80Block name for screen readers

Next steps