1. Reference
  2. Display

<indicator>

A loading indicator: a circular spinner, a linear bar or the iOS-style spinner.

Display
indicator.ham
<column style="gap-24 w-full">
    <row style="gap-24 items-center">
        <indicator type="circular"
                   color="blue"
                   show/>
        <indicator type="cupertino"
                   show/>
        <text style="muted">Syncing photos…</text>
    </row>
    <indicator type="linear"
               color="teal"
               show/>
</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 Indicator color
color
primary
show Show the indicator
boolean
false
type Indicator type
circular, linear, refresh, cupertino, text, content
circular

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.