Scroll Area
fun ScrollArea(state: ScrollAreaState, modifier: Modifier = Modifier, content: @Composable ScrollAreaScope.() -> Unit)
A foundational component used to build scrollable areas in Compose Multiplatform. The scroll area consists of a content area and optional scrollbars.
Parameters
state
The ScrollAreaState that controls the scroll area.
modifier
Modifier to be applied to the scroll area.
content
The content of the scroll area.
fun ScrollArea(state: ScrollAreaState, modifier: Modifier = Modifier, overscrollEffect: OverscrollEffect? = ScrollableDefaults.overscrollEffect(), overscrollEffectSides: List<OverscrollSides> = listOf(
OverscrollSides.Vertical, OverscrollSides.Horizontal
), content: @Composable ScrollAreaScope.() -> Unit)
A foundational component used to build scrollable areas in Compose Multiplatform. The scroll area consists of a content area and optional scrollbars.
Parameters
state
The ScrollAreaState that controls the scroll area.
modifier
Modifier to be applied to the scroll area.
overscroll Effect
The overscroll effect to be applied to the scroll area.
overscroll Effect Sides
The sides where the overscroll effect should be applied.
content
The content of the scroll area.