Scrollbar
fun UiScope.Scrollbar(state: ScrollState, modifier: Modifier = Modifier.Empty, key: ElementKey<*>? = null)(source)
Emits one independently placed profile-backed vertical scrollbar linked to state.
The scrollbar may be omitted or placed anywhere in the surrounding layout without changing its linked ScrollArea. Its height must be bounded by its parent or modifier.
Receiver
active owner-thread screen scope.
Parameters
state
caller-owned state shared with one scroll area.
modifier
active layout and behavior around the scrollbar.
key
optional stable sibling identity.
Throws
when no runtime screen evaluation is active.