1. Reference
  2. Display

<shimmer>

A shimmering gray placeholder in the shape of content that is still loading: a box, a circle or lines.

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.

shimmer.ham
<column style="w-full gap-16">
    <row style="gap-12 items-center">
        <shimmer type="circle"
                 width="48"
                 height="48"/>
        <column flex="1"
                style="gap-8">
            <shimmer width="160"
                     height="14"/>
            <shimmer width="100"
                     height="12"/>
        </column>
    </row>
    <shimmer height="160"/>
    <shimmer type="text"
             lines="3"/>
</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
color Placeholder color
color
gray-300
height Height in pixels
number
16
lines Number of text lines (type=text)
number
1
type Shape type
rect, circle, text
rect
width Width in pixels
number

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.