ARK QRCode Vue
Installation
You can install the package via yarn:
yarn add ark-qrcode-vue
or npm:
npm install ark-qrcode-vue --save
Next you must register the component.
import ArkQRCode from 'ark-qrcode-vue'
Vue.use(ArkQRCode)
Browser Support
ark-qrcode-vue
has the same browser support as Vue (see https://github.com/vuejs/vue). To use it in a browser based environment simply include <script src='https://unpkg.com/ark-qrcode-vue@latest/dist/index.js'></script>
in your header.
Usage
<ArkQrCode address="DE6os4N86ef9bba6kVGurqxmhpBHKctoxY" :amount="20.3" />
Properties
This package complies with the specifications described in AIP-13.
Attribute | Description | Type | Required |
---|---|---|---|
address | Ark recipient address encoded in Base58. | String | Yes |
amount | Amount in ARK (Ѧ) or DARK (DѦ). | Number | No |
label | Recipient label string. | String | No |
size | Size of the QR code (pixels) | Number | No |
show-logo | Display the ARK logo in QR code | Boolean | No |
vendor-field | Vendor field string (encoded URI). | String | No |
Authors
- Brian Faust hello@brianfaust.me
- Lúcio Rubens lucio@ark.io