Skip to content

zakgof/compose-table

Repository files navigation

Compose-table compose-table

Maven Central Kotlin badge badge badge badge badge

Table component for Kotlin Multiplatform

@Composable table widget

  • Automatic layout

  • Composable cells

  • Grid lines

  • Spanning rows and columns

  • Easy to use

    Example

Setup

Gradle configuration for Kotlin Multiplatform:

kotlin {
    sourceSets {
        commonMain.dependencies {
            implementation("com.github.zakgof:table:1.0.1")

Quick start

Table (lineWidth = 2.dp, lineColor = Color.BLUE) {
    Row {
        Text(text = "Cell 1")
        Text(text = "Cell 2")
    }
    Row {
        Text(text = "Long cell", modifier = Modifier.columnSpan(2))
    }
}

About

Table component for Kotlin Multiplatform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages