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

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.
Properties
Section titled “Properties”has-focus
Section titled “has-focus”bool default: false
Whether the component has focus.
stop-count
Section titled “stop-count”float default: 0
The number of discrete divisions in the slider range. If greater than 0, the slider will snap to these divisions.
enabled
Section titled “enabled”bool default: true
Whether the slider is enabled. When false, the slider cannot be interacted with.
maximum
Section titled “maximum”float default: 100
The maximum value of the slider.
minimum
Section titled “minimum”float default: 0
The minimum value of the slider.
float (in-out)
default: 0.0
The current value of the slider.
Callbacks
Section titled “Callbacks”released(value: float)
Section titled “released(value: float)”Invoked when the slider is released.
value_changed(value: float)
Section titled “value_changed(value: float)”Invoked when the slider value changes.
Functions
Section titled “Functions”clear-focus()
Section titled “clear-focus()”Clears the focus from the component.
focus()
Section titled “focus()”Focuses the component.
© 2025 SixtyFPS GmbH