1. Reference
  2. Structure

<screen>

A full app screen: the frame that holds the app bar, the main content, drawers and bottom navigation.

Structure
screen.ham
<screen>
    <app-bar title="Inbox"/>
    <main>
        <column style="w-full p-16 gap-8">
            <text style="font-bold">3 new messages</text>
            <text style="muted">Pull down to refresh.</text>
        </column>
    </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 Delay before autoscroll starts in seconds
number
0.0
autoscroll-loop Whether autoscroll loops continuously
boolean
false
autoscroll-speed Autoscroll speed in pixels per second
number
bg_color Background color of the screen
color
round-safe
also round_safe
On a round watch: true keeps the page inside the circle (inset to the square it holds, a short page in its middle); false runs it full-bleed. Default: <config round_safe>, else true.
boolean
status_bar
also status-bar
Status-bar icons: light (white, for a dark page), dark, or auto (from the screen background; an app bar picks from its own color). Default: <config status_bar>.
light, dark, auto
auto
swipe-dismiss
also swipe_dismiss
On a watch: true lets a swipe from the left edge go back one page (the first page: leave the app), as Wear expects; false leaves the swipe to the page (a map, an edge carousel) and back to the system back. Default: <config swipe_dismiss>, else true.
boolean

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

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