Skip to main content

Slider

Displays a slider for selecting a floating-point value.

KeyTypeDescriptionRequiredDefaultMin Version
minnumberMinimum value0.0
maxnumberMaximum value1.0
stepnumberStep interval; slider snaps to nearest step01.2-10
showValuebooleanShow current valuefalse

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