# <fixed>

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

Category: Layout.

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

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `autoscroll-delay` | Autoscroll delay in seconds | `0.0` |
| `autoscroll-loop` | Whether autoscroll loops | `false` |
| `autoscroll-restart` | Autoscroll restart delay in seconds, or 'false' to disable |  |
| `autoscroll-speed` | Autoscroll speed in pixels per second |  |
| `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. |  |
| `left` | Offset in px from the left edge of the visible body; negative hangs past it. |  |
| `right` | Offset in px from the right edge of the visible body; negative hangs past it. |  |
| `top` | Offset in px from the top edge of the visible body; negative hangs past it. |  |

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.

## Related tags

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<row>`](https://hypeapps.dev/docs/reference/row.md): Lays children side by side in one line; flex= shares the free space and align/cross position them.
- [`<address>`](https://hypeapps.dev/docs/reference/address.md): Contact details as a block, in italic by default, as HTML's address element.
- [`<aside>`](https://hypeapps.dev/docs/reference/aside.md): A side note set apart from the main text, as HTML's aside element; it works like a block.
- [`<background>`](https://hypeapps.dev/docs/reference/background.md): The layer a swiped dismissible row reveals behind it, such as a red delete strip.
- [`<block>`](https://hypeapps.dev/docs/reference/block.md): The general-purpose container: groups children and gives them padding, color, corners and a border.
- [`<card>`](https://hypeapps.dev/docs/reference/card.md): A surface for grouped content, with padding, rounded corners and a soft shadow.

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