# <skeleton>

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

Category: Display. Also written `<shimmer>`, `<placeholder>`.

```ham
<column style="w-full gap-16">
    <row style="gap-12 items-center">
        <skeleton type="circle"
                  width="48"
                  height="48"/>
        <column flex="1"
                style="gap-8">
            <skeleton width="160"
                      height="14"/>
            <skeleton width="100"
                      height="12"/>
        </column>
    </row>
    <skeleton height="160"/>
    <skeleton type="text"
              lines="3"/>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `color` | Placeholder color | `gray-300` |
| `height` | Height in pixels | `16` |
| `lines` | Number of text lines (type=text) | `1` |
| `type` | Shape type (rect, circle, text) | `rect` |
| `width` | Width in pixels |  |

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

- [`<column>`](https://hypeapps.dev/docs/reference/column.md): Stacks its children top to bottom, with a gap between them and an alignment across.
- [`<row>`](https://hypeapps.dev/docs/reference/row.md): Lays children side by side in one line; flex= shares the free space and align/cross position them.
- [`<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.

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