Skip to content

Installation

Maven Central

Version Compatibility

Kotlin version Compose version Compose DND version
2.3.20 1.10.3 1.0.0-alpha01

Gradle Setup

Add the following dependency to your module build.gradle.kts file:

implementation("com.mohamedrejeb.dnd:compose-dnd:1.0.0-alpha01")

Kotlin Multiplatform

For Kotlin Multiplatform projects, add the dependency to your commonMain source set:

kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation("com.mohamedrejeb.dnd:compose-dnd:1.0.0-alpha01")
        }
    }
}

Version Catalog

If you are using a version catalog (libs.versions.toml), add the following:

[versions]
compose-dnd = "1.0.0-alpha01"

[libraries]
compose-dnd = { module = "com.mohamedrejeb.dnd:compose-dnd", version.ref = "compose-dnd" }

Then reference it in your build.gradle.kts:

implementation(libs.compose.dnd)