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)
Copyright © 2026