Android components Data display
StanceDataTable
BetaA simple table that scrolls horizontally when columns do not fit.
- PlatformAndroid, Jetpack Compose
- Builds onA custom Stance component
- Kindcomposable
Preview
Rendered by the Jetpack Compose library, not drawn by hand.






Usage
data class User(val name: String, val team: String, val deployments: Int)
StanceDataTable(
columns = listOf(
StanceTableColumn<User>("Name") { it.name },
StanceTableColumn("Team") { it.team },
StanceTableColumn("Deployments", numeric = true) { it.deployments.toString() },
),
rows = listOf(User("Priya Nair", "Sales", 14), User("Hana Sato", "Finance", 9)),
caption = "Organisation users",
)Accessibility
- Headers are headings.
- Rows are read as header and value pairs.