Skip to main content

<CreateAccessCodeForm /> (preview)

The create access code form component allows you to create an access code.
<CreateAccessCodeForm deviceId={deviceId}/>

Size: Mobile

Props

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

Optional callback fired when an access code is created.

Signature: (accessCode: AccessCode) => void

onErrorfunction

Optional callback triggered if an error occurs during the creation of an access code.

Signature: (err: SeamError, params: UseCreateAccessCodeParams) => void

onBackfunction

Optional callback fired when the Back chevron button is clicked.

Signature: () => void

classNamestringOptional class name to add to the rendered component’s containing element.