1. Reference
  2. Navigation

<nav-item>

The older spelling of a bottom navigation item: metadata the bar reads, not drawn by itself.

Navigation
nav-item.ham
<screen>
    <main>
        <column style="w-full p-16 gap-8">
            <text style="font-bold">Home</text>
            <text style="muted">Your feed is up to date.</text>
        </column>
    </main>
    <bottom-navigation-bar>
        <nav-item label="Home"
                  action="home"/>
        <nav-item label="Saved"
                  action="saved"/>
    </bottom-navigation-bar>
</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.

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