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-announcement>

hk-announcement: A bar of up to six short messages that fade or scroll, optionally dismissible. Syntax, props, defaults and examples.

On this page

A bar of up to six short messages that fade or scroll, optionally dismissible.

Group: Text and media. Name in the editor: Announcement bar. Complete props for every tag: Tag reference.

Syntax

html
<hk-announcement />

Children: None. The tag is self-closing.

Props

Write props as kebab-case attributes.

PropTypeRequiredDefaultAllowed valuesEditor label
m1textno""max length 160Message 1
l1linkno""-Message 1 link
m2textno""max length 160Message 2
l2linkno""-Message 2 link
m3textno""max length 160Message 3
l3linkno""-Message 3 link
m4textno""max length 160Message 4
l4linkno""-Message 4 link
m5textno""max length 160Message 5
l5linkno""-Message 5 link
m6textno""max length 160Message 6
l6linkno""-Message 6 link
motionselectnostaticstatic, rotate, marqueeMotion
speednumberno51 to 10Speed
colorcolorno--Text colour
dismissiblebooleannofalse-Close button

Required props

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

Examples

No example in the starter themes yet.

Limits and security

  • Motion is CSS only; no script ever runs.
  • Every animation is switched off for visitors who ask for reduced motion, leaving the first message.
  • hk-heading: A heading with a level, size, alignment and colour.
  • hk-text: A paragraph of plain text with size, alignment and colour.
  • hk-rich-text: Formatted text from an HTML string, sanitized before it is rendered.
  • hk-badge: A small label such as New or Sale, with a tone.
  • hk-image: An image with alt text, dimensions, aspect ratio, fit, loading mode and radius.
  • hk-icon: An icon from the built-in set, with size, stroke and an accessible label.

Next steps