# <wrap>

Flows its children along a line and onto the next when the line is full, like words in a paragraph.

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

```ham
<column style="w-full gap-8">
    <text style="font-semibold">Interests</text>
    <wrap spacing="8 8">
        <chip>Hiking</chip>
        <chip>Photography</chip>
        <chip>Jazz</chip>
        <chip>Cooking</chip>
        <chip>Board games</chip>
        <chip>Climbing</chip>
        <chip>Travel</chip>
    </wrap>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `align` | Alignment of items (start, center, end, spaceBetween, spaceAround, spaceEvenly) | `start` |
| `horizontal-space` | Horizontal spacing; overrides spacing. |  |
| `run-spacing` | Vertical space between rows | `0` |
| `spacing` | Space between items: "8" (both axes), "8 12" or "8,12" (horizontal, vertical) | `0` |
| `vertical-space` | Vertical spacing; overrides spacing. |  |

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.
- [`<chip>`](https://hypeapps.dev/docs/reference/chip.md): A compact chip: a label, a filter that toggles, a single choice in a set, or an action.
- [`<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
