Components
Slider
The Slider Component.
Slider
The slider component represents a draggable slider for selecting a value within a range.
Parameters
text
string required
The text to display alongside the slider.
value
int
The current value of the slider.
active
boolean
Whether the slider is active or not.
Examples
Components.slider(0.5)
.text(Text.literal("Volume"))
.active(true)
<slider>
<text>Volume</text>
<value>0.5</value>
<active>true</active>
</slider>