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-cart-drawer>

hk-cart-drawer: A slide-in cart panel that can open when an item is added. Syntax, props, defaults and examples.

On this page

A slide-in cart panel that can open when an item is added.

Group: Cart and checkout. Name in the editor: Cart drawer. Complete props for every tag: Tag reference.

Syntax

html
<hk-cart-drawer>
  …
</hk-cart-drawer>

Children: Any content: elements, hk-* tags and text.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
titletextno--Drawer title
open-on-addbooleannotrue-Open when an item is added

Required props

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

Examples

From packages/templates-default/theme/sections/header.snf, lines 66 to 69:

html
<hk-cart-drawer open-on-add="{{ section.settings.drawer_on_add }}">
  <hk-cart-items />
  <hk-cart-summary />
</hk-cart-drawer>

Next steps