Slider
Displays a slider for selecting a floating-point value.
Key | Type | Description | Required | Default | Min Version |
---|---|---|---|---|---|
min | number | Minimum value | – | 0.0 | – |
max | number | Maximum value | – | 1.0 | – |
step | number | Step interval; slider snaps to nearest step | – | 0 | 1.2-10 |
showValue | boolean | Show current value | – | false | – |
This component does not support label
/icon
. Use Group
to add headings/descriptions.
Return Type | Description |
---|---|
number | Slider value |
Theme
Theme Key | Type | Description |
---|---|---|
tintColor | Color | Track tint color |
thumbColor | Color | Thumb color |
Example
{
showValue = true;
min = 1;
default = 5;
max = 10;
step = 0.5;
label = "Slider";
cell = "Slider";
key = "slider";
};