Back to Table Component Documentation
The table component supports record selection. You can enable selection by setting the enable-selection attribute to true. This will add a checkbox to each row and a "Select All" checkbox to the header.
<k-table
id="recordSelectionExample"
enable-selection
></k-table>
<script type="module">
await window.customElements.whenDefined('k-table');
document.getElementById('recordSelectionExample').setRecords(contacts);
</script>