# <rate-app>

A tap target that asks for a store rating: the native rating sheet, the store listing or a feedback mail.

Category: Display. Also written `<rate-this-app>`.

This tag needs an installed app on a phone with an app store, so try it on your phone.

```ham
<column style="items-center gap-12">
    <text style="font-semibold">Enjoying Trailmate?</text>
    <rate-app/>
    <rate-app type="feedback"
              label="Send feedback"/>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `label` | Text for the built-in face when the tag has no children. |  |
| `subject` | Feedback subject. |  |
| `to` | Feedback recipient; falls back to <config feedback_email>. |  |
| `trigger` | auto: render nothing and ask for the native rating sheet once per session, delay seconds after it first appears. (auto) |  |
| `type` | prompt: native rating sheet with store-listing fallback; store: open the listing; feedback: mail composer. (prompt, store, feedback) | `prompt` |
| `when-available` | true hides the face until the OS confirms it can show a native rating prompt ($review.available). |  |

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
