<!-- INCORRECT --><mds-table-body> <mds-table-row> <mds-table-cell>Mario Rossi</mds-table-cell> </mds-table-row></mds-table-body>
<!-- CORRECT --><mds-table> <mds-table-header> <mds-table-header-cell label="Nome"></mds-table-header-cell> </mds-table-header> <mds-table-body> <mds-table-row> <mds-table-cell>Mario Rossi</mds-table-cell> </mds-table-row> </mds-table-body></mds-table><!-- INCORRECT --><mds-table> <mds-table-body> <tr> <td>Laura Bianchi</td> <td>Operatore</td> </tr> </mds-table-body></mds-table>
<!-- CORRECT --><mds-table> <mds-table-body> <mds-table-row> <mds-table-cell>Laura Bianchi</mds-table-cell> <mds-table-cell>Operatore</mds-table-cell> </mds-table-row> </mds-table-body></mds-table><!-- INCORRECT --><mds-table> <mds-table-body interactive selection> <mds-table-row> <mds-table-cell>Giulia Verdi</mds-table-cell> </mds-table-row> </mds-table-body></mds-table>
<!-- CORRECT --><mds-table interactive selectable> <mds-table-body> <mds-table-row> <mds-table-cell>Giulia Verdi</mds-table-cell> </mds-table-row> </mds-table-body></mds-table><!-- INCORRECT --><mds-table-body interactive="false" selection="false"> ...</mds-table-body>
<!-- CORRECT (attribute absent = prop is undefined / false) --><mds-table-body> ...</mds-table-body>/* INCORRECT */mds-table-body >>> tr { background: lightyellow;}
/* CORRECT */mds-table-body { --mds-table-body-background: rgb(var(--magma-surface-muted)); --mds-table-body-background-hover: rgb(var(--magma-accent-surface));}