1. Reference
  2. Structure

<navigate>

A link around any element: tapping what's inside goes to another page.

Structure
navigate.ham
<column style="items-start gap-12 w-full">
    <navigate action="file:/orders.ham">
        <row style="gap-12 items-center p-16 rounded-xl bg-indigo-50 dark:bg-indigo-900">
            <icon name="local_shipping"/>
            <text style="font-bold">Track your order</text>
            <icon name="chevron_right"/>
        </row>
    </navigate>
</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
navigation
also stack
Older spelling of swap: replace replaces the current page instead of pushing one (swap="replace").
push, replace

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.