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

A Menu
display a list of choices on a temporary surface.
Properties
Section titled “Properties”[struct MenuItem] default: a struct with all default values
An array of menu items, each containing an icon, a text, and a trailing text.
Callbacks
Section titled “Callbacks”item_clicked(index: int)
Section titled “item_clicked(index: int)”Invoked when a menu item is clicked
© 2025 SixtyFPS GmbH