scrollbar

abstract fun scrollbar(state: ScrollState, modifier: Modifier, key: ElementKey<*>?): Element(source)

Creates one independently placed profile-backed vertical scrollbar.

Return

an immutable retained-element description referencing but not owning state.

Parameters

state

caller-owned position shared with one scroll area.

modifier

active behavior and layout constraints around the scrollbar.

key

optional stable sibling identity.