Skip to content

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.

[struct MenuItem] 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


© 2025 SixtyFPS GmbH