Skip to content

IconButton

import { IconButton } from "material.slint";
export component Example inherits Window {
width: 100px;
height: 100px;
background: transparent;
IconButton {
icon: @image-url("icons/menu.svg");
tooltip: "Menu";
}
}
slint

An IconButton is a button that displays an icon and can be used for actions, toggles, or navigation.

bool default: false

Whether the button can be toggled between checked and unchecked states.

bool (in-out) default: false

Whether the button is currently checked.

bool default: true

Whether the button is enabled and can be interacted with.

bool default: false

Whether the button should display an error state.

image default: the empty image

The icon image displayed on the button.

image default: the empty image

The icon image displayed when the button is checked (if checkable).

bool default: false

Whether the button is displayed inline (smaller size, no background).

bool default: false

Whether to use inverse colors for the button.

string default: ""

A tooltip text that appears when hovering over the button.

Invoked when the button is clicked.

IconButton {
clicked() => {
debug("Icon button clicked");
}
}
slint

© 2025 SixtyFPS GmbH