1. Reference
  2. Layout

<fixed>

A block pinned to the screen, like a bottom bar that stays put while the page scrolls under it.

Layout
fixed.ham
<screen>
    <main>
        <column style="w-full p-16 gap-12">
            <column style="w-full h-140 rounded-xl bg-indigo-900 p-16 gap-4">
                <text style="text-white text-2xl font-bold">Your library</text>
                <text style="text-white">12 books · 3 in progress</text>
            </column>
            <text>The Overstory</text>
            <text>Piranesi</text>
            <text>Klara and the Sun</text>
        </column>
        <fixed bottom="0"
               left="0"
               right="0">
            <row style="w-full h-60 justify-around items-center bg-white dark:bg-gray-900 border-t">
                <text style="font-bold">Home</text>
                <text>Shelf</text>
                <text>Search</text>
            </row>
        </fixed>
    </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.

Attributes

NameWhat it doesDefault
autoscroll-delay Autoscroll delay in seconds
number
0.0
autoscroll-loop Whether autoscroll loops
boolean
false
autoscroll-restart Autoscroll restart delay in seconds, or 'false' to disable
string
autoscroll-speed Autoscroll speed in pixels per second
number
autoscroll-target page: scroll the screen; self: scroll inside this box (give it a height). parent is accepted as self.
page, self
page
bottom Offset in px from the bottom edge of the visible body; negative hangs past it.
number
left Offset in px from the left edge of the visible body; negative hangs past it.
number
right Offset in px from the right edge of the visible body; negative hangs past it.
number
top Offset in px from the top edge of the visible body; negative hangs past it.
number

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.