Skip to content

SnackBar

import { SnackBar } from "material.slint";
export component Example inherits Window {
width: 400px;
height: 200px;
background: transparent;
SnackBar {
text: "Message sent";
action_text: "Undo";
has_close_button: true;
}
}
slint

A SnackBar provides brief messages about app processes at the bottom of the screen. It can include an action and a close button.

string default: ""

The label for the action button.

bool default: false

Whether to show a close button on the snackbar.

string default: ""

The message text displayed in the snackbar.

Invoked when the action button is clicked.

SnackBar {
action() => {
debug("SnackBar action clicked");
}
}
slint

© 2025 SixtyFPS GmbH