Documentation
DraggableScaffold
DraggableScaffold is a library that helps stack one composable on top of another so it can be dragged to reveal the content under it.
Demo
To see the code for the examples in the gif you can check here.

Basic use
DraggableScaffold(
contentUnderRight = { Text(text = "Hello 😃", Modifier.padding(4.dp)) },
contentOnTop = {
Card(
modifier = Modifier.padding(4.dp).fillMaxWidth(),
elevation = 4.dp
{ Text(text = "Drag this to show content on the right", Modifier.padding(16.dp)) }
}
)
Adding to your porject
1 - Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
...
}
}
2 - Add the dependency:
dependencies {
...
implementation "com.github.Tgo1014:DraggableScaffold:1.3.0"
...
}
Similar Libraries
Compose Color Picker
Jetpack Compose Android Color Picker 🎨
Color PickerUI Component
Compose Reorderable
Enables reordering by drag and drop in Jetpack Compose (Desktop) LazyList & LazyGrid.
Gesture
Collapsible App Bar
Collapsible App bar made with Jetpack Compose & Motion Compose
ExamplesUI Component
Fragula
🧛 Fragula is a swipe-to-dismiss extension for navigation component library for Android
GestureLibrary
Browse by Category

Be the first to discover new Compose libraries
Curated Insights
Digest in 5 minutes or less
Android Analysis
Entertaining takes on happenings
Insider Tips
From top Android developers
Hidden Gems
You won't find elsewhere
"
"I truly love this newsletter ❤️🔥 Spot on content and I know there's a lot of effort that goes behind it. Great work!"
— theapache64
Staff Software Engineer @ Disney+ Hotstar
Join thousands of Android devs who look forward to Dispatch every week
© 2026 All Rights Reserved | Made by Vinay Gaba
