# <empty-state>

A centered nothing-here placeholder: a large icon, a title, a line of help and an optional button.

Category: Display. Also written `<empty>`.

```ham
<empty-state icon="search_off"
             title="No results"
             subtitle="Try another word, or clear the filters.">
    <button action="$query = ''">Clear filters</button>
</empty-state>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `icon` | Icon name | `inbox` |
| `icon-color` | Icon color | `gray-400` |
| `subtitle` | Subtitle/description text |  |
| `title` | Title text |  |

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.

## Related tags

- [`<button>`](https://hypeapps.dev/docs/reference/button.md): A tappable button that runs an action: a fetch, a navigation or a statement.
- [`<ad>`](https://hypeapps.dev/docs/reference/ad.md): An ad slot in the page, filled with a banner from AdMob in a built app.
- [`<avatar>`](https://hypeapps.dev/docs/reference/avatar.md): A round avatar from a photo, initials or an icon, in any size and color.
- [`<badge>`](https://hypeapps.dev/docs/reference/badge.md): A small count or dot pinned to the corner of an icon or any other element.
- [`<canvas-tool>`](https://hypeapps.dev/docs/reference/canvas-tool.md): A drawing tool written in HAM and loaded into a draw pad as a plugin: touch handlers, state and options.
- [`<caption>`](https://hypeapps.dev/docs/reference/caption.md): A table caption, shown as a label above the table.
- [`<carousel>`](https://hypeapps.dev/docs/reference/carousel.md): Swipeable pages side by side, one at a time, with dots below that show which page is on screen.
- [`<chart>`](https://hypeapps.dev/docs/reference/chart.md): A line, area, bar or sparkline chart drawn from a list of values; a tap shows a point's value.

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