Dialog
import { Dialog } from "@material";export component Example inherits Window { width: 400px; height: 300px; background: transparent; Dialog { title: "Confirm Action"; default-action-text: "OK"; actions: ["Cancel"]; }}slint
A Dialog is a modal overlay that appears on top of the main content to present important information or request user input. It can contain various content and action buttons.
Properties
Section titled “Properties”actions
Section titled “actions”[string]default: ""
An array of text labels for secondary action buttons.
default-action-text
Section titled “default-action-text”stringdefault: ""
The text for the primary action button (typically “OK” or “Confirm”).
imagedefault: the empty image
An optional icon displayed at the top of the dialog.
stringdefault: ""
The title text displayed at the top of the dialog.
Callbacks
Section titled “Callbacks”action-clicked(index: int)
Section titled “action-clicked(index: int)”Invoked when a secondary action button is clicked.
default-action-clicked()
Section titled “default-action-clicked()”Invoked when the default action button is clicked or when Enter is pressed.
© 2026 SixtyFPS GmbH