> ## Documentation Index
> Fetch the complete documentation index at: https://www.seam.co/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Access Code Table

> Show a list of current and future access codes and their statuses in your app with Seam's React Access Code Table component.

## \<AccessCodeTable /> [(preview)](https://react.seam.co/?path=/docs/components-accesscodetable--docs)

The access codes table shows a list of current and future access codes and their statuses.

```
<AccessCodeTable deviceId={deviceId} />
```

### Size: Mobile

### Size: Desktop

### Props

<table>
  <thead>
    <tr>
      <th width="250.33333333333331">Name</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        deviceId<mark>\*</mark>
      </td>

      <td>string</td>

      <td>
        The id for the device whose access codes will be shown in the table.
      </td>
    </tr>

    <tr>
      <td>disableLockUnlock</td>
      <td>boolean</td>

      <td>
        Hide the lock/unlock button for devices. Default: `false`.
      </td>
    </tr>

    <tr>
      <td>disableDeleteAccessCode</td>
      <td>boolean</td>

      <td>
        Hide the delete action. Default: `false`
      </td>
    </tr>

    <tr>
      <td>
        `disableSearch`
      </td>

      <td>boolean</td>

      <td>
        Hide the search box. Default: `false`.
      </td>
    </tr>

    <tr>
      <td>accessCodeFilter</td>
      <td>function</td>

      <td>
        Optional filter function to filter the listed access codes.

        Signature:&#x20;

        `(accessCode: AccessCode, searchInputValue: string) => boolean`
      </td>
    </tr>

    <tr>
      <td>accessCodeComparator</td>
      <td>function</td>

      <td>
        Optional comparator function to order the listed access codes.

        Signature:&#x20;

        `(accessCodeA: AccessCode, accessCodeB: AccessCode) => number`
      </td>
    </tr>

    <tr>
      <td>onAccessCodeClick</td>
      <td>function</td>

      <td>
        Optional callback fired when an access code is clicked.

        Signature: `(accessCodeId: string) => void`
      </td>
    </tr>

    <tr>
      <td>preventDefaultOnAccessCodeClick</td>
      <td>boolean</td>

      <td>
        Prevent the default behavior when an access code is clicked. Default:&#x20;
        `false`
      </td>
    </tr>

    <tr>
      <td>onBack</td>
      <td>function</td>

      <td>
        Optional callback fired when the Back chevron button is clicked.

        Signature: `() => void`
      </td>
    </tr>

    <tr>
      <td>className</td>
      <td>string</td>

      <td>
        Optional class name to add to the rendered component's containing
        element.
      </td>
    </tr>
  </tbody>
</table>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.