# <menu-item>

One choice in a popup menu or dropdown: an icon, a label, and the action it runs.

Category: Overlays.

```ham
<row style="w-full items-center justify-between">
    <text style="font-bold">Quarterly report.pdf</text>
    <popup-menu icon="more_vert">
        <menu-item icon="edit"
                   value="rename">Rename</menu-item>
        <menu-item icon="share"
                   value="share">Share</menu-item>
        <menu-item icon="delete"
                   value="delete">Delete</menu-item>
    </popup-menu>
</row>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `icon` | Icon name |  |
| `label` | Menu item text |  |
| `value` | Value reported as $event.value on select (default: the text). |  |

## Events

| Name | What it does |
|---|---|
| `action` | Statements / URL run when the item is picked (in a <popup-menu>). |

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

- [`<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.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<popup-menu>`](https://hypeapps.dev/docs/reference/popup-menu.md): An icon button that opens a context menu; picking an item runs its action and fires select.
- [`<bottom-sheet>`](https://hypeapps.dev/docs/reference/bottom-sheet.md): A sheet that slides up from the bottom of the screen, with a drag handle and a title.
- [`<dialog>`](https://hypeapps.dev/docs/reference/dialog.md): A dialog with a title, a message, and confirm and cancel buttons that run statements.
- [`<dropdown>`](https://hypeapps.dev/docs/reference/dropdown.md): A Material dropdown menu: a field that opens a list of choices; the chosen value is readable by id.
- [`<popover>`](https://hypeapps.dev/docs/reference/popover.md): Floats its children next to another element, like a reactions bar over a Like button.
- [`<snackbar>`](https://hypeapps.dev/docs/reference/snackbar.md): A short message bar pinned to the bottom of the screen, with an optional action button.

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