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.
Properties
Section titled “Properties”[struct MenuItem] default: a struct with all default values
MenuItem
This structure represents a MenuItem with an icon, text, trailing text, and enabled state.
icon(image): The icon to display in the item.text(string): The text to display in the item.trailing_text(string): The trailing text to display in the item.enabled(bool): Whether the item is enabled.
An array of menu items, each containing an icon, a text, and a trailing text.
Callbacks
Section titled “Callbacks”activated(index: int)
Section titled “activated(index: int)”Invoked when a menu item is clicked
© 2025 SixtyFPS GmbH