Slider

@JvmName(name = "SliderStatef08abfd13498_1")
fun UiScope.Slider(label: StateSource<UiText>, state: SliderState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
@JvmName(name = "SliderStatecccdb0fa60d4_1")
fun UiScope.Slider(label: StateSource<String>, state: SliderState, width: Int = 150, enabled: Boolean = true, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Observes label for Slider at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slider. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


@JvmName(name = "SliderStatef08abfd13498_2")
fun UiScope.Slider(label: UiText, state: SliderState, width: Int = 150, enabled: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
@JvmName(name = "SliderStatecccdb0fa60d4_2")
fun UiScope.Slider(label: String, state: SliderState, width: Int = 150, enabled: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Observes enabled for Slider at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slider. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


@JvmName(name = "SliderStatef08abfd13498_3")
fun UiScope.Slider(label: StateSource<UiText>, state: SliderState, width: Int = 150, enabled: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
@JvmName(name = "SliderStatecccdb0fa60d4_3")
fun UiScope.Slider(label: StateSource<String>, state: SliderState, width: Int = 150, enabled: StateSource<Boolean>, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Observes label, enabled for Slider at the next owner-thread frame cutoff.

Retain caller-owned sources and editing state outside reevaluation. See Observe for shared snapshots, equal-value suppression, and cleanup; literal arguments follow Slider. Modifiers and parent data apply to the actual component, while the binding owns its sibling key.


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 from 1 to 200 pixels in the Minecraft profile.

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.