Skip to main content

QR Code Scanner Dialog Button

info

Please note that this content is under development and is not ready for implementation. This status message will be updated as content development progresses.

Description

The QRCodeScannerDialogButton component is responsible for rendering a button that allows the user to scan a QR code. The component will return the data that is scanned by the user.

Example

{
"name": "QRCodeScannerDialogButton",
"type": "EntryData",
"props": {
"style": { "margin": "40px auto", "paddingTop": "40px", "width": "80%" }
}
}

Definitions

PropertyRequiredDescriptionType
nameYesThe name of the component(should be "QRCodeScannerDialogButton")String
typeYesThe type of the component (should be "EntryData")ComponentType
propsYesThe properties for the QRCodeScannerDialogButtonProps

Props

PropertyRequiredDescriptionType
styleNoThe style for the componentObject
typeNoThe type of data (should be 'VerifiableCredential' and 'JSON'), the default is 'VerifiableCredential'String
vcOptionsNoThe options for the VC data processingObject

vcOptions

PropertyRequiredDescriptionType
credentialPathYesThe path for the credential data that is fetched from the QR code URLString
vckitAPIUrlNoThe URL for the vckit APIString
headersNoThe headers for the vckit API, example: { Authorization: "Bearer test123"}Object