Skip to content

MediumAppBar

import { MediumAppBar } from "material.slint";
export component Example inherits Window {
width: 400px;
height: 200px;
background: transparent;
MediumAppBar {
title: "My App";
width: parent.width;
height: parent.height;
}
}
slint

A MediumAppBar is a medium-sized app bar that displays the app title and optional action buttons with more padding and spacing than the small variant.

bool default: false

Whether to use the container background color instead of the surface color.

IconButtonItem default: a IconButtonItem with default values

An icon button item displayed at the start of the app bar, typically used for navigation.

string default: ""

The title text displayed in the app bar.

[IconButtonItem] default: a IconButtonItem with default values

An array of icon button items displayed at the end of the app bar, typically used for actions.

Invoked when the leading icon is clicked.

MediumAppBar {
leading_clicked() => {
debug("Leading icon clicked");
}
}
slint

Invoked when a trailing icon is clicked, with the index of the clicked icon.

MediumAppBar {
traling_clicked(index) => {
debug("Trailing icon clicked at index: ", index);
}
}
slint

© 2025 SixtyFPS GmbH