Slider
import { Slider, VerticalBox } from "std-widgets.slint";export component Example inherits Window { width: 200px; height: 40px;
VerticalBox { alignment: center;
Slider { value: 42; } }}
slint

Properties
enabled
bool default: true
You can’t interact with the slider if enabled is false.
has-focus
bool (out)
default: false
Set to true when the slider currently has the focus
value
step
minimum
maximum
orientation
enum Orientation default: horizontal
Orientation
Represents the orientation of an element or widget such as the Slider
.
horizontal
: Element is oriented horizontally.vertical
: Element is oriented vertically.
If set to true the Slider is displayed vertical.
Callbacks
changed(float)
The value was changed
Slider { changed(value) => { debug("New value: ", value); }}
slint
released(float)
Invoked when the user completed changing the slider’s value, i.e. when the press on the knob was released or the arrow keys lifted.
Slider { released(position) => { debug("Released at position: ", position); }}
slint
© 2025 SixtyFPS GmbH