1. Reference
  2. Layout

<inline-content>

Lays its children out in a row that wraps onto new lines, with set gaps between them.

Layout
inline-content.ham
<inline-content spacing="8 8">
    <chip variant="choice"
          label="Vegetarian"/>
    <chip variant="choice"
          label="Gluten free"
          selected="true"/>
    <chip variant="choice"
          label="Spicy"/>
    <chip variant="choice"
          label="Under 30 minutes"/>
    <chip variant="choice"
          label="Dairy free"/>
</inline-content>
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
horizontal-space Horizontal spacing override
number
0
spacing Spacing as 'val' or 'h,v' (comma or space separated)
string
0
vertical-space Vertical spacing override
number
0

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.