1. Reference
  2. Text

<text>

A run of text; with @text it shows an expression that updates as its variables change.

Text
text.ham
<column style="w-full gap-8">
    <text style="font-xl font-bold">Weekend in Porto</text>
    <text style="muted">3 nights, 2 guests</text>
    <text @text="'Total: $' + (3 * 140)"></text>
</column>
The snippet drawn by Hype Apps on a phone, in light mode The snippet drawn by Hype Apps on a phone, in dark mode
This snippet as Hype Apps draws it on a phone. It follows this page's light or dark theme.

Any tag also takes gestures: @on.tap, @on.longpress, @on.doubletap and @on.swipeleft (and right, up and down). @click runs on a tap too.

Guides and recipes that use it

This page is also Markdown, and all of HAM is in llms.txt.