# <slot>

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

Category: Data.

```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>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `name` | The slot's name; the instance fills it with slot="name" on a child. |  |

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

- [Your own tags](https://hypeapps.dev/docs/guides/own-tags.md)

## Related tags

- [`<tag>`](https://hypeapps.dev/docs/reference/tag.md): Defines a tag of your own from built-in markup; every attribute but name is a prop with a default.
- [`<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.
- [`<attr>`](https://hypeapps.dev/docs/reference/attr.md): Declares one prop of a tag of your own in full: its name, type and default value.

All tags: https://hypeapps.dev/docs/reference.md · The full reference: https://hypeapps.dev/llms.txt
