1. Reference
  2. Text

<pre>

Block-level code: monospace text on a gray background, set apart on its own line.

Text
pre.ham
<column style="gap-8 w-full">
    <text>Install the command-line tool:</text>
    <pre>npm install -g hype-cli</pre>
    <text style="muted text-sm">Then run it from your project folder.</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.

Attributes

NameWhat it doesDefault
style Style classes
string

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.

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