# Table - Record Selection

##### 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="true"
    ></k-table>
    <script type="module">
      import Table from '../kempo/components/Table.js';
      document.getElementById('recordSelectionExample').setRecords(contacts);
    </script>