Stylish Table
A simple read-only data table — the web "Table" pattern from shadcn/ui and MUI.
Renders columns as a header row and rows as body rows with equal cell widths. Rows with fewer cells than columns are padded with empty cells. For interactive, selectable rows prefer the connected list-item family.
Parameters
The column headers.
The cell values; each row must not exceed columns in length.
Modifier applied to the root surface.
Background of the table. Defaults to MaterialTheme.colorScheme.surfaceContainerHigh.
Background of the header row. Defaults to MaterialTheme.colorScheme.surfaceContainerHighest.
Foreground color of the cells. Defaults to MaterialTheme.colorScheme.onSurface.
Typography of the header cells. Defaults to MaterialTheme.typography.labelLarge.
Typography of the body cells. Defaults to MaterialTheme.typography.bodyMedium.
Vertical gap between body rows. Defaults to 0 dp.
Inner padding of every cell. Defaults to 12 x 10 dp.
Corner shape of the table surface. Defaults to RoundedCornerShape with DefaultStylishDimensions.connectedCornerRadius.