1. Reference
  2. Structure

<main>

The page's main content area, under the app bar; navigation swaps its content.

Structure
main.ham
<screen>
    <app-bar title="Today"/>
    <main>
        <column style="w-full p-16 gap-12">
            <h3>Good morning, Maya</h3>
            <text>Standup at 9:30 · Room 4</text>
            <text>Lunch with Sam at 12:45</text>
            <text style="muted">Swipe down to refresh.</text>
        </column>
    </main>
</screen>
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.