
A Kotlin & Compose Multiplatform implementation of the Material 2 Data Table.

Setup
Using libs.versions.toml
To add the dependency to your Kotlin Multiplatform project, open the build.gradle.kts of your shared module, then
kotlin {
sourceSets {
commonMain.dependencies {
implementation(libs.composematerialdatatable)
}
}
}
and, in your libs.versions.toml, add:
composematerialdatatable = "1.2.2"
[libraries]
composematerialdatatable = { module = "io.github.aleksandar-stefanovic:composematerialdatatable", version.ref = "composematerialdatatable" }
Using direct dependency notation
kotlin {
sourceSets {
commonMain.dependencies {
implementation("io.github.aleksandar-stefanovic:composematerialdatatable:1.2.2")
}
}
}
Features
For the planned features, see Issues.
Supported platforms
Right now, it is tested and working on:
- Desktop
- Android
- WASM (with the limitation of not having number formatting)
- iOS
Example
Gradle submodule sample contains a working example of the Table implementation, see Sample App.kt.