ProgressBar

@JvmName(name = "ProgressBarState4c303dc4114b_1")
fun UiScope.ProgressBar(progress: StateSource<Double>, size: IntSize = IntSize(100, 12), modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Source-backed ProgressBar observing progress at the next frame cutoff. Sources remain caller-owned; compatible nodes retain editing, focus, and scrolling state. Literal arguments keep their existing contracts. Equal source values do not re-evaluate this component. The complete modifier chain stays on the actual component; the wrapper delegates parent data and owns the sibling key. Keep sources and dedicated editing states outside observed callbacks. Evaluation and input failures follow ordinary runtime cleanup.


fun UiScope.ProgressBar(progress: Double, size: IntSize = IntSize(100, 12), modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)

Emits one determinate Minecraft-profile progress bar.

The value is clamped to the closed zero-to-one range and the active resource pack supplies both the fill and border.

Receiver

active owner-thread screen scope.

Parameters

progress

completed fraction; non-finite values are rejected.

size

positive logical destination size.

modifier

active behavior applied to the bar.

key

optional stable sibling identity.