FloatingActionButton
import { FloatingActionButton } from "material.slint";export component Example inherits Window { width: 120px; height: 120px; background: transparent; FloatingActionButton { icon: @image-url("icons/add.svg"); tooltip: "Add"; style: FABStyle.standard; }}
slint
A FloatingActionButton
(FAB) is a circular button that floats above the UI and is used for a primary action.
Properties
Section titled “Properties”image default: the empty image
The icon image displayed on the button.
FABStyle default: FABStyle.standard
The style of the FAB: small
, standard
, or large
.
string default: ""
An optional text label for the button.
tooltip
Section titled “tooltip”string default: ""
A tooltip text that appears when hovering over the button.
Callbacks
Section titled “Callbacks”clicked()
Section titled “clicked()”Invoked when the button is clicked.
FloatingActionButton { clicked() => { debug("FAB clicked"); }}
slint
© 2025 SixtyFPS GmbH