1. Reference
  2. Display

<empty-state>

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

Display

This tag has more than one name. Every spelling is the same tag, so write whichever feels natural. Pick one and every example on this page uses it.

empty-state.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>
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
icon Icon name
string
inbox
icon-color Icon color
color
gray-400
subtitle Subtitle/description text
string
title Title text
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.

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