# <progress-ring>

A round progress indicator: an arc from 0 to max around a track, with its children centered inside.

Category: Display. Also written `<circular-progress>`.

```ham
<column style="items-center gap-12">
    <progress-ring value="68"
                   max="100"
                   size="140"
                   stroke-width="10"
                   color="teal-500">
        <text style="font-2xl font-bold">68%</text>
    </progress-ring>
    <text style="muted">Daily goal: 6,800 of 10,000 steps</text>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `animate` | Milliseconds the arc takes to glide to a new value (0 = jump) | `300` |
| `background-color` | Track color (the rest of the circle) | `gray-200` |
| `cap` | The ends of the arc: rounded or cut flat (round, flat) | `round` |
| `color` | Arc color (default: the primary color) |  |
| `loop` | The value is taken modulo max: past a full turn the arc glides on to full, then continues from empty, never rewinding (a ring that keeps counting). Without it the arc is clamped at full. | `false` |
| `max` | The value that means a full ring, as in HTML <progress>: value="40" max="100" draws 40%. | `1` |
| `size` | Outer diameter in px; the ring is that square | `48` |
| `stroke-width` | Thickness of the arc and track in px | `4` |
| `value` | Progress from 0 to max (none = indeterminate, a spinner) |  |

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.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<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
