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
| Category | layout |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | padding-y |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
full-bleed | boolean | false | no | — | Full bleed |
background | color | — | no | — | Background |
padding-y | number | 64 | yes: tablet-padding-y mobile-padding-y | min 0, max 240 | Vertical padding |
<hk-container>Open page
Container
| Category | layout |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | padding-x |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
max-width | number | — | no | min 200, max 1920 | Max width |
padding-x | number | 16 | yes: tablet-padding-x mobile-padding-x | min 0, max 120 | Horizontal padding |
<hk-stack>Open page
Stack
| Category | layout |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | direction gap |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
direction | select | column | yes: tablet-direction mobile-direction | row, column | Direction |
gap | number | 16 | yes: tablet-gap mobile-gap | min 0, max 160 | Gap |
align | select | — | no | start, center, end, stretch | Align |
justify | select | — | no | start, center, end, between | Justify |
wrap | boolean | false | no | — | Wrap |
<hk-grid>Open page
Grid
| Category | layout |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | columns gap |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
columns | range | 3 | yes: tablet-columns mobile-columns | min 1, max 12 | Columns |
gap | number | 24 | yes: tablet-gap mobile-gap | min 0, max 160 | Gap |
min-item | number | — | no | min 80, max 600 | Min item width |
<hk-section-group>Open page
Shared section group
| Category | layout |
| Children | none (self-closing: <hk-section-group … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
name | select | — | no | header, footer, announcement, required | Group |
<hk-heading>Open page
Heading
| Category | typography |
| Children | none (self-closing: <hk-heading … />) |
| Responsive props | size |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
text | text | "" | no | — | Text |
level | select | h2 | no | h1, h2, h3, h4 | Level |
size | number | — | yes: tablet-size mobile-size | min 12, max 160 | Size |
align | select | — | no | start, center, end | Align |
color | color | — | no | — | Colour |
<hk-text>Open page
Text
| Category | typography |
| Children | none (self-closing: <hk-text … />) |
| Responsive props | size |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
text | textarea | "" | no | — | Text |
size | number | — | yes: tablet-size mobile-size | min 10, max 64 | Size |
align | select | — | no | start, center, end | Align |
color | color | — | no | — | Colour |
<hk-rich-text>Open page
Rich text
| Category | typography |
| Children | none (self-closing: <hk-rich-text … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
html | rich_text | "" | no | — | Rich text |
<hk-badge>Open page
Badge
| Category | typography |
| Children | text and {{ }} |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
text | text | — | no | — | Text |
tone | select | accent | no | accent, neutral, success, warning | Tone |
<hk-image>Open page
Image
| Category | media |
| Children | none (self-closing: <hk-image … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
src | image | — | no | — | Image |
alt | text | "" | no | — | Alt text |
width | number | — | no | min 16, max 2400 | Width |
height | number | — | no | min 16, max 2400 | Height |
sizes | text | 100vw | no | — | Image sizes |
aspect-ratio | select | — | no | 1/1, 4/5, 3/4, 16/9, 21/9 | Aspect ratio |
fit | select | cover | no | cover, contain | Fit |
loading | select | lazy | no | lazy, eager | Loading |
radius | number | — | no | min 0, max 200 | Radius |
<hk-icon>Open page
Icon
| Category | media |
| Children | none (self-closing: <hk-icon … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
name | select | — | no | arrow-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, required | Icon |
size | range | 20 | no | min 12, max 96 | Size |
stroke | range | 2 | no | min 1, max 3, step 0.5 | Stroke |
label | text | — | no | — | Label |
<hk-button>Open page
Button
| Category | ui |
| Children | none (self-closing: <hk-button … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
label | text | "" | no | — | Label |
href | link | # | no | — | Link |
variant | select | solid | no | solid, outline, ghost | Style |
size | select | md | no | sm, md, lg | Size |
icon | select | — | no | arrow-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 | Icon |
icon-position | select | start | no | start, end | Icon position |
<hk-card>Open page
Card
| Category | ui |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | padding |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
background | color | — | no | — | Background |
radius | number | 12 | no | min 0, max 64 | Radius |
padding | number | 16 | yes: tablet-padding mobile-padding | min 0, max 96 | Padding |
border | boolean | false | no | — | Border |
shadow | select | none | no | none, sm, md, lg | Shadow |
<hk-search-form>Open page
Search form
| Category | ui |
| Children | none (self-closing: <hk-search-form … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
placeholder | text | — | no | — | Placeholder |
label | text | "" | no | — | Label |
button-label | text | — | no | — | Button text |
show-label | boolean | false | no | — | Show label |
icon | boolean | true | no | — | Search icon |
<hk-pagination>Open page
Pagination
| Category | ui |
| Children | none (self-closing: <hk-pagination … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
paginate | data | — | no | — | Pagination data |
<hk-locale-switch>Open page
Language switch
| Category | ui |
| Children | none (self-closing: <hk-locale-switch … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
display | select | name | no | name, code | Display |
localization | data | — | no | — | Localization data |
<hk-custom-html>Open page
Custom HTML
| Category | ui |
| Children | none (self-closing: <hk-custom-html … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
html | textarea | "" | no | max length 30000 | HTML |
css | textarea | "" | no | max length 10000 | CSS |
<hk-announcement>Open page
Announcement bar
| Category | ui |
| Children | none (self-closing: <hk-announcement … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
m1 | text | "" | no | max length 160 | Message 1 |
l1 | link | "" | no | — | Message 1 link |
m2 | text | "" | no | max length 160 | Message 2 |
l2 | link | "" | no | — | Message 2 link |
m3 | text | "" | no | max length 160 | Message 3 |
l3 | link | "" | no | — | Message 3 link |
m4 | text | "" | no | max length 160 | Message 4 |
l4 | link | "" | no | — | Message 4 link |
m5 | text | "" | no | max length 160 | Message 5 |
l5 | link | "" | no | — | Message 5 link |
m6 | text | "" | no | max length 160 | Message 6 |
l6 | link | "" | no | — | Message 6 link |
motion | select | static | no | static, rotate, marquee | Motion |
speed | number | 5 | no | min 1, max 10 | Speed |
color | color | — | no | — | Text colour |
dismissible | boolean | false | no | — | Close button |
<hk-price>Open page
Price
| Category | commerce |
| Children | none (self-closing: <hk-price … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
amount | number | — | no | — | Price |
compare-at | number | — | no | — | Compare at |
format | select | — | no | decimal, whole | Number format |
product | data | — | no | — | Product with variants |
<hk-product-card>Open page
Product card
| Category | commerce |
| Children | <hk-part> |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
product | product | — | no | — | Product |
Parts, each filled with <hk-part name="…"> directly inside the tag: badge, actions.
<hk-product-grid>Open page
Product grid
| Category | commerce |
| Children | none (self-closing: <hk-product-grid … />) |
| Responsive props | columns |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
products | collection | — | no | — | Products |
limit | range | 8 | no | min 1, max 48 | Count |
columns | range | 4 | yes: tablet-columns mobile-columns | min 1, max 6 | Columns |
<hk-product-gallery>Open page
Product gallery
| Category | commerce |
| Children | none (self-closing: <hk-product-gallery … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
product | data | — | no | — | Product |
layout | select | thumbs-below | no | thumbs-below, thumbs-side, stacked | Gallery layout |
thumbnails | boolean | true | no | — | Thumbnails |
sizes | text | (min-width:1024px) 50vw, 100vw | no | — | Image sizes |
<hk-variant-picker>Open page
Variant picker
| Category | commerce |
| Children | none (self-closing: <hk-variant-picker … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
product | data | — | no | — | Product |
display | select | auto | no | auto, swatches, buttons, select | Picker style |
<hk-add-to-cart>Open page
Add to cart
| Category | commerce |
| Children | none (self-closing: <hk-add-to-cart … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
product | data | — | no | — | Product |
label | text | — | no | — | Button label |
choose-label | text | — | no | — | Choose options label |
sold-out-label | text | — | no | — | Sold out label |
quantity | boolean | true | no | — | Quantity picker |
variant | select | solid | no | solid, outline | Button style |
<hk-cart-count>Open page
Cart count
| Category | commerce |
| Children | none (self-closing: <hk-cart-count … />) |
| Responsive props | none |
No props.
<hk-cart-items>Open page
Cart items
| Category | commerce |
| Children | <hk-part> |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
checkout-label | text | — | 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
| Category | commerce |
| Children | none (self-closing: <hk-cart-summary … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
subtotal-label | text | — | no | — | Subtotal label |
checkout-label | text | — | no | — | Checkout button label |
<hk-cart-drawer>Open page
Cart drawer
| Category | commerce |
| Children | any content (elements, hk-* tags, text) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
title | text | — | no | — | Drawer title |
open-on-add | boolean | true | no | — | Open when an item is added |
<hk-inline-checkout>Open page
Order form
| Category | commerce |
| Children | none (self-closing: <hk-inline-checkout … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
product | data | — | no | — | Product |
label | text | "" | no | — | Form name for screen readers |
<hk-app-block>Open page
App block
| Category | commerce |
| Children | none (self-closing: <hk-app-block … />) |
| Responsive props | none |
| Attribute | Type | Default | Responsive | Options / range | Label |
|---|---|---|---|---|---|
app | select | — | no | customer_subscriptions, required | App |
block | select | — | no | subscribe, portal, required | Block |
product | data | — | no | — | Product |
settings | data | — | no | — | Settings |
label | text | "" | no | max length 80 | Block name for screen readers |
