ScrollArea

fun UiScope.ScrollArea(state: ScrollState, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null, scrollRate: Int = 9, content: UiScope.() -> Unit)(source)

Emits one profile-backed scroll viewport containing exactly one root.

Receiver

active owner-thread screen scope.

Parameters

modifier

active behavior applied to the viewport.

key

optional stable sibling identity.

scrollRate

positive logical wheel displacement multiplier.

content

callback that must emit exactly one content root.

Throws

when scrollRate is not positive or content does not emit exactly one root.

when no runtime screen evaluation is active.