1. Reference
  2. Data

<slot>

Marks where an instance's children go inside a user-defined tag; its own content is the fallback.

Data
slot.ham
<tag name="info-card"
     title="Note">
    <column style="w-full p-16 gap-8 rounded-xl border border-gray-300 dark:border-gray-700">
        <text @text="$title"
              style="font-semibold"></text>
        <slot>
            <text style="muted">Nothing here yet.</text>
        </slot>
    </column>
</tag>

<column style="w-full gap-12">
    <info-card title="Delivery">
        <text>Your parcel arrives Thursday between 9 and 12.</text>
    </info-card>
    <info-card title="Returns"/>
</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
name The slot's name; the instance fills it with slot="name" on a child.
string

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.

Guides and recipes that use it

This page is also Markdown, and all of HAM is in llms.txt.