Create Access Code Form

<CreateAccessCodeForm /> (preview)

The create access code form component allows you to create an access code.

<CreateAccessCodeForm deviceId={deviceId}/>

Size: Mobile

Props

NameTypeDescription

deviceId

string

Optional. The ID for the device for which the access code will be created for. When set, it will skip the device selection pane.

onSuccess

function

Optional callback fired when an access code is created. Signature: (accessCode: AccessCode) => void

onError

function

Optional callback triggered if an error occurs during the creation of an access code. Signature: (err: SeamError, params: UseCreateAccessCodeParams) => void

onBack

function

Optional callback fired when the Back chevron button is clicked. Signature: () => void

className

string

Optional class name to add to the rendered component's containing element.

Last updated

Logo

Š Seam Labs, Inc. All rights reserved.