Skip to main content

Import 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 ImportButton component is responsible for rendering a button that allows the user to import data. The component will return the data that is imported by the user.

Example

{
"name": "ImportButton",
"type": "EntryData",
"props": {
"label": "Import JSON",
"style": { "margin": "40px auto", "paddingTop": "40px", "width": "80%" }
}
}

Definitions

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

Props

PropertyRequiredDescriptionType
labelYesThe label for the import buttonString
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 dataString
vckitAPIUrlNoThe URL for the vckit APIString
headersNoThe headers for the vckit API, example: { Authorization: "Bearer test123"}Object