fastscroller-compose-multiplatform
0.3.2indexedEnhances scroll bar functionality across various platforms, inspired by Google's Launcher3 FastScroller. Includes customizable styles and optional Material Design themes for seamless integration.
Enhances scroll bar functionality across various platforms, inspired by Google's Launcher3 FastScroller. Includes customizable styles and optional Material Design themes for seamless integration.
Implementing scroll bars in Compose Multiplatform
The scroll bar implementations available in androidx.compose.foundation:foundation library, but it is currently available for Compose Multiplatform without Android. (To be precise, it is available on all platforms except Android, but the implementation is not optimized for mobile.)
This library changes that, by providing the scroll bar implementations for many of the platforms supported by Compose Multiplatform. And more changes inspired by Google's Launcher3 FastScroller.

Usage is very simple:
import io.github.oikvpqya.compose.fastscroller.VerticalScrollbar
import io.github.oikvpqya.compose.fastscroller.material.defaultMaterialScrollbarStyle
import io.github.oikvpqya.compose.fastscroller.rememberScrollbarAdapter
@Composable
fun Screen() {
val state = rememberLazyListState()
LazyColumn(
modifier = Modifier.fillMaxSize(),
state = state,
) {
Box (/* ... */){
Image (/* ... */)
Text (fontSize = fontSize)
}
}
VerticalScrollbar(
modifier = Modifier.align(Alignment.TopEnd).fillMaxHeight(),
adapter = rememberScrollbarAdapter(scrollState = state),
style = defaultMaterialScrollbarStyle(),
enablePressToScroll = ,
)
}
See samples or github page.
In kmp sample app, you can see an example of a scrollbar indicator.
repositories {
mavenCentral()
}
dependencies {
implementation "io.github.oikvpqya.compose.fastscroller:fastscroller-core:0.3.2"
// Optional: Provides scroll bar Material Design 2 theme by defaultMaterialScrollbarStyle
implementation "io.github.oikvpqya.compose.fastscroller:fastscroller-material:0.3.2"
// Optional: Provides scroll bar Material Design 3 theme by defaultMaterialScrollbarStyle
implementation "io.github.oikvpqya.compose.fastscroller:fastscroller-material3:0.3.2"
// Optional: Provides scroll bar indicator shape
implementation "io.github.oikvpqya.compose.fastscroller:fastscroller-indicator:0.3.2"
}
FastScroller for Compose Multiplatform is inspired by the following libraries:
JetBrains's Compose Multiplatform Scrollbar
Google's Launcher3 FastScroller
Copyright 2025 The Android Open Source Project
Portions 2025 oikvpqya Yuya
Licensed under the Apache License, Version 2.0 (the "License");
you may use except compliance the License.
You may obtain a copy of the License at
https:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.