Skip to content

PopupMenu

import { PopupMenu } from "@material";
export component Example inherits Window {
width: 400px;
height: 300px;
background: transparent;
PopupMenu {
width: 280px;
height: parent.height;
items: [
{ text: "Copy" },
{ text: "Cut" },
{ text: "Paste" },
];
}
}
slint

A PopupMenu to display a list of choices on a temporary surface.

[struct] default: a struct with all default values

An array of menu items, each containing an icon, a text, and a trailing text.

Invoked when a menu item is clicked


© 2026 SixtyFPS GmbH