# <navigate>

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

Category: Structure.

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

How Hype Apps draws it on a phone: [light](https://hypeapps.dev/img/tags/navigate-light.webp), [dark](https://hypeapps.dev/img/tags/navigate-dark.webp).

## Attributes

| Name | What it does | Default |
|---|---|---|
| `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.

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<row>`](https://hypeapps.dev/docs/reference/row.md): Lays children side by side in one line; flex= shares the free space and align/cross position them.
- [`<icon>`](https://hypeapps.dev/docs/reference/icon.md): A Material Symbols icon, with its style, weight, size and color set in its name.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<app-bar>`](https://hypeapps.dev/docs/reference/app-bar.md): The bar at the top of a screen: a title, a leading menu icon, and action icons on the right.
- [`<drawer-header>`](https://hypeapps.dev/docs/reference/drawer-header.md): The header at the top of a side drawer, such as the signed-in person's photo and name.
- [`<drawer-left>`](https://hypeapps.dev/docs/reference/drawer-left.md): A drawer that slides in from the left edge, opened by the menu icon or #id.open.
- [`<drawer-right>`](https://hypeapps.dev/docs/reference/drawer-right.md): A drawer that slides in from the right edge, for filters or details; open it with #id.open.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
