Skip to content

TabBar

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

A TabBar displays a row of tabs for navigation between different views or content sections.

int (in-out) default: 0

The index of the currently selected tab.

[struct NavigationItem] default: a struct with all default values

NavigationItem

This structure represents a NavigationItem with an icon, text, badge, and empty badge.

  • icon (image): The icon to display in the item.
  • icon-selected (image): The icon to display in the item when selected.
  • text (string): The text to display in the item.
  • empty-badge (bool): Whether the badge is empty.
  • badge (string): The badge to display in the item.

An array of tab items to display in the bar.


© 2025 SixtyFPS GmbH