Table
Shadcn/ui-style Table root — mirrors Table from table.tsx.
Wraps content in a horizontally-scrollable container with a rounded border. Respects androidx.compose.ui.platform.LocalLayoutDirection for RTL.
Table {
TableHeader {
TableRow {
TableHead { Text("Name") }
TableHead { Text("Amount") }
}
}
TableBody {
rows.forEach { row ->
TableRow {
TableCell { Text(row.name) }
TableCell { Text(row.amount) }
}
}
}
TableFooter {
TableRow { TableHead(colSpan = 2) { Text("Total: $100") } }
}
TableCaption { Text("Payment history") }
}Content copied to clipboard