# <spacer>

Empty space: a fixed gap with size=, or a flexible spacer that pushes its neighbors apart.

Category: Layout. Also written `<gap>`.

```ham
<column style="w-full gap-0">
    <row style="w-full items-center">
        <text style="font-semibold">Order #4821</text>
        <spacer/>
        <text style="text-teal-600">Shipped</text>
    </row>
    <spacer size="24"/>
    <text style="muted">Arrives Friday, 14 November</text>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `size` | Fixed height in pixels. If null, flexible Spacer expands to fill. |  |

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.
- [`<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.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<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
