# <main>

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

Category: Structure.

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

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

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

- [Your first screen](https://hypeapps.dev/docs/guides/first-screen.md)
- [Layout and styling](https://hypeapps.dev/docs/guides/layout.md)
- [Navigation](https://hypeapps.dev/docs/guides/navigation.md)
- [Forms and state](https://hypeapps.dev/docs/guides/forms.md)
- [Lists and loops](https://hypeapps.dev/docs/guides/lists.md)
- [Data and databases](https://hypeapps.dev/docs/guides/data.md)
- [A poll that syncs](https://hypeapps.dev/docs/guides/sync.md)
- [Who's using the app ($me)](https://hypeapps.dev/docs/guides/me.md)
- [Gestures](https://hypeapps.dev/docs/guides/gestures.md)
- [Animations and effects](https://hypeapps.dev/docs/guides/animations.md)
- [Drawing and media](https://hypeapps.dev/docs/guides/media.md)
- [Your own tags](https://hypeapps.dev/docs/guides/own-tags.md)
- [A seat picker](https://hypeapps.dev/docs/cookbook/seat-picker.md)
- [A cart with quantities](https://hypeapps.dev/docs/cookbook/cart.md)
- [A chat thread](https://hypeapps.dev/docs/cookbook/chat.md)
- [An hourly forecast](https://hypeapps.dev/docs/cookbook/forecast.md)
- [Rows the server updates (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-watchlist.md)
- [Pick the right match (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-match.md)
- [Search on the server (MoviePlz)](https://hypeapps.dev/docs/cookbook/movieplz-search.md)

## Related tags

- [`<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.
- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<h3>`](https://hypeapps.dev/docs/reference/h3.md): A third-level heading: 24 px bold text for a subsection.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<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.
- [`<list-tile>`](https://hypeapps.dev/docs/reference/list-tile.md): A Material list row with an icon, a title, a subtitle and an optional switch, checkbox or radio.

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