1. Reference
  2. Layout

<fullscreen>

A fixed canvas exactly the size of the screen, clipped, for games, posters and kiosk pages.

Layout
fullscreen.ham
<fullscreen>
    <block style="w-full h-full bg-img-https://hypeapps.dev/gallery/assets/landscape.jpg bg-img-fit-cover items-center justify-center">
        <text style="text-white text-3xl font-bold">Summer Fair</text>
        <text style="text-white">Saturday 14 June · Town Square</text>
    </block>
</fullscreen>
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
bounce Rubber-band drag margin in px; bare bounce = 20. The frame springs back on release.
number
scroll true lets taller content scroll inside the fixed frame.
boolean
false

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.