Link @lit-material/tokens/css/index.css once per page for the colour, type and shape tokens. Install guide
API
<lit-material-table>
A semantic, read-only table from data: a real <table> with a caption,
a header row with scope="col", numeric and monospace columns, and a
scroll container so a wide table scrolls inside its box, not the page.
Properties
Property
Attribute
Type
Default
Description
columns
columns
TableColumn<Row>[]
[]
>
rows
rows
Row[]
[]
>
caption
caption
string
""
Describes the table; read by screen readers.
captionHidden
caption-hidden
boolean
false
Keep the caption for screen readers only.
density
density
"standard" | "compact"
"standard"
Row height: standard or compact.
stickyHeader
sticky-header
boolean
false
Header stays visible while the container scrolls (give the host a height).