# <update>

In a stream event, sends its content into another element by id; elsewhere it is a plain block.

Category: Structure.

```ham
<column style="w-full gap-8">
    <block id="score"
           style="w-full p-16 rounded-xl border border-gray-300 dark:border-gray-700">
        <text style="font-semibold">Arsenal 1 – 0 Chelsea</text>
    </block>
    <update target="#score"
            swap="inner">
        <text style="muted">Next event: Arsenal 2 – 0 Chelsea, 67'</text>
    </update>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `swap` | How it goes in. (inner, outer, before, after) | `inner` |
| `target` | The element it updates (#id). |  |

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.
- [`<block>`](https://hypeapps.dev/docs/reference/block.md): The general-purpose container: groups children and gives them padding, color, corners and a border.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<app-bar>`](https://hypeapps.dev/docs/reference/app-bar.md): The bar at the top of a screen: a title, a leading menu icon, and action icons on the right.
- [`<drawer-header>`](https://hypeapps.dev/docs/reference/drawer-header.md): The header at the top of a side drawer, such as the signed-in person's photo and name.
- [`<drawer-left>`](https://hypeapps.dev/docs/reference/drawer-left.md): A drawer that slides in from the left edge, opened by the menu icon or #id.open.
- [`<drawer-right>`](https://hypeapps.dev/docs/reference/drawer-right.md): A drawer that slides in from the right edge, for filters or details; open it with #id.open.
- [`<list-tile>`](https://hypeapps.dev/docs/reference/list-tile.md): A Material list row with an icon, a title, a subtitle and an optional switch, checkbox or radio.

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