Skip to main content

<DeviceTable /> (preview)

The devices table shows a list of devices and their statuses.
<SeamProvider clientSessionToken={clientSessionToken}>
    <DeviceTable />
</SeamProvider

Responsive Views

Size: Desktop

Size: Modal

Props

NameTypeDescription
deviceIdsarrayOptional list of specific device ids to return when requesting devices from the Seam API.
connectedAccountIdsarrayOptional list of connected account ids to filter devices by when requesting devices from the Seam API.
disableLockUnlockbooleanHide the lock/unlock button for devices. Default: false.
disableSearchbooleanHide the search box. Default: false.
deviceFilterfunctionOptional filter function to filter the listed devices.

Signature: (device: Device, searchInputValue: string) => boolean
deviceComparatorfunctionOptional comparator function to order the listed devices.

Signature: (deviceA: Device, deviceB: Device) => number
onDeviceClickfunctionOptional callback fired when a device is clicked.

Signature: (deviceId: string) => void
preventDefaultOnDeviceClickbooleanPrevent the default behavior when a device is clicked. Default: false
onBackfunctionOptional callback fired when the Back chevron button is clicked.

Signature: () => void
classNamestringOptional class name to add to the rendered component’s containing element.