# <popup-menu>

An icon button that opens a context menu; picking an item runs its action and fires select.

Category: Overlays.

```ham
<column style="w-full gap-8">
    <row style="w-full items-center justify-between">
        <text style="font-bold">Quarterly report.pdf</text>
        <popup-menu icon="more_vert"
                    @on.select="$last = $event.value">
            <menu-item icon="edit"
                       value="rename">Rename</menu-item>
            <menu-item icon="delete"
                       value="delete">Delete</menu-item>
        </popup-menu>
    </row>
    <text style="muted text-sm">Tap the menu for Rename and Delete.</text>
</column>
```

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

## Attributes

| Name | What it does | Default |
|---|---|---|
| `color` | Trigger icon color. |  |
| `icon` | Trigger icon. | `more_vert` |

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.
- [`<text>`](https://hypeapps.dev/docs/reference/text.md): A run of text; with @text it shows an expression that updates as its variables change.
- [`<menu-item>`](https://hypeapps.dev/docs/reference/menu-item.md): One choice in a popup menu or dropdown: an icon, a label, and the action it runs.
- [`<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.

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