Skip to content

Slider

import { Slider } from "@material";
export component Example inherits Window {
width: 200px;
height: 100px;
background: transparent;
Slider {
x: 5px;
value: 50;
width: parent.width;
}
}
slint

Use a Slider to allow the user to select a value from a range by moving a thumb along a track. This is useful for adjusting settings such as volume, brightness, or any other scalar value within a specified range.

bool default: false

Whether the component has focus.

float default: 0

The number of discrete divisions in the slider range. If greater than 0, the slider will snap to these divisions.

bool default: true

Whether the slider is enabled. When false, the slider cannot be interacted with.

float default: 100

The maximum value of the slider.

float default: 0

The minimum value of the slider.

float (in-out) default: 0.0

The current value of the slider.

Invoked when the slider is released.

Invoked when the slider value changes.

Clears the focus from the component.

Focuses the component.


© 2025 SixtyFPS GmbH