Scrollbar
fun UiScope.Scrollbar(state: ScrollState, modifier: Modifier = Modifier, 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. Primary track presses reposition the thumb; captured thumb drags continue outside the scrollbar bounds until release. 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.