Example
Copy <TableComponent border-type="rows" alternate-row-color outer-border hoverable sticky-header max-height="14rem">
<template #header>
<TableHeaderComponent>
<th>Name</th>
<th>Age</th>
</TableHeaderComponent>
</template>
<template #body>
<TableBodyComponent>
<tr v-for="person in people" :key="person.id">
<td>{{ person.name }}</td>
<td>{{ person.age }}</td>
</tr>
</TableBodyComponent>
</template>
<template #footer>
<TableFooterComponent>
<td colspan="2">Total: {{ people.length }}</td>
</TableFooterComponent>
</template>
</TableComponent>API TableComponent props Name Type Default Description borderType'rows' | 'all' | 'columns' | 'none''rows'Which cell borders to draw. alternateRowColorbooleanfalseStripe every other body row. outerBorderbooleanfalseBorder around the whole table. hoverablebooleanfalseHighlight body rows on hover. stickyHeaderbooleanfalseKeep header cells visible while scrolling. maxHeightstringundefinedMaximum height; the table scrolls inside it. v-model:selected(string | number)[][]Values of the selected rows. selectablebooleanfalseClicking a TableRowComponent toggles its selection. showCheckboxbooleanfalseAdds a checkbox column (and select-all when multiple). Implies selectable. multiplebooleantrueAllow more than one selected row.
TableRowComponent props Name Type Default Description valuestring | numberundefinedUnique row value used for selection. Rows without a value cannot be selected.
Slots Name Description headerTableHeaderComponent with <th> cells. bodyTableBodyComponent with <tr> rows. defaultAlternative to the body slot. footerTableFooterComponent with <td> cells.