1. Reference
  2. Overlays

<popup-menu>

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

Overlays
popup-menu.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>
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 Trigger icon color.
color
icon Trigger icon.
string
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.

This page is also Markdown, and all of HAM is in llms.txt.