1. Reference
  2. Layout

<wrap>

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

Layout

This tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.

wrap.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>
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
align Alignment of items
start, center, end, spaceBetween, spaceAround, spaceEvenly
start
horizontal-space Horizontal spacing; overrides spacing.
number
run-spacing Vertical space between rows
number
0
spacing Space between items: "8" (both axes), "8 12" or "8,12" (horizontal, vertical)
number
0
vertical-space Vertical spacing; overrides spacing.
number

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.