<slot>
Marks where an instance's children go inside a user-defined tag; its own content is the fallback.
<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>
Attributes
| Name | What it does | Default |
|---|---|---|
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.