Skip to content

NavigationRail

import { NavigationRail } from "@material";
export component Example inherits Window {
width: 400px;
height: 300px;
background: transparent;
NavigationRail {
width: 80px;
height: parent.height;
items: [
{ icon: @image-url("../icons/share.svg"), text: "Home" },
{ icon: @image-url("../icons/search.svg"), text: "Search" }
];
}
}
slint

A NavigationRail is a vertical navigation component that displays navigation items with optional menu button and floating action button.

enum LayoutAlignment default: the first enum value

The alignment of the navigation items within the rail.

int (in-out) default: 0

The index of the currently selected navigation item.

image default: the empty image

The icon for the floating action button.

bool default: false

Whether to show a menu button at the top of the rail.

[struct] default: a struct with all default values

An array of navigation items to display in the rail.

Invoked when the current-index changes.

Invoked when the menu button is clicked.

Invoked when the floating action button is clicked.


© 2026 SixtyFPS GmbH