Skip to main content

Slider

Displays a slider for selecting a floating-point value.

KeyTypeDescriptionRequiredDefaultMin Version
minnumberMinimum value–0.0–
maxnumberMaximum value–1.0–
stepnumberStep interval; slider snaps to nearest step–01.2-10
showValuebooleanShow current value–false–

This component does not support label/icon. Use Group to add headings/descriptions.

Return TypeDescription
numberSlider value

Theme

Theme KeyTypeDescription
tintColorColorTrack tint color
thumbColorColorThumb color

Example​

{
showValue = true;
min = 1;
default = 5;
max = 10;
step = 0.5;
label = "Slider";
cell = "Slider";
key = "slider";
};

XUI-Slider.png