Slider

fun UiScope.Slider(label: UiText, state: SliderState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one horizontal Minecraft-profile Slider backed by caller-owned state.

Pointer press and drag plus focused left/right keys normalize through the state's range and steps before emitting a typed Slider change action.

Receiver

active owner-thread screen scope.

Parameters

label

unresolved visible and semantic label.

state

caller-owned numeric state.

width

fixed logical track width.

enabled

whether input and enabled appearance are active.

modifier

active layout, input, and typed action behavior.

key

optional stable sibling identity.


fun UiScope.Slider(label: String, state: SliderState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Literal-label overload of Slider.