Add barcodes to your Vue application super easily with VueBarcode! [Try it out!](http://jsfiddle.net/hfgan035/13/)
npm install vue-barcodeCODE128
EAN
EAN-13
EAN-8
EAN-5
EAN-2
UPC (A)
CODE39
ITF-14
MSI
Pharmacode
Codabar
npm install vue-barcode
``
Use
#### 1. Add VueBarcode as a component
``javascript
import VueBarcode from 'vue-barcode';
new Vue({
components: {
'barcode': VueBarcode
}
})
``
#### 2. Use it
``html
Show this if the rendering fails.
``
Example
Simple example with input binding. Try it out with this JsFiddle!
``html
Show this if the rendering fails.
``
``javascript
import VueBarcode from 'vue-barcode';
var app = new Vue({
el: '#app',
data: {
barcodeValue: 'test',
},
components: {
'barcode': VueBarcode
}
})
``
Options
All options:
format
width
height
text
font-options
font
text-align
text-position
text-margin
font-size
background
lineColor
margin
margin-top
margin-bottom
margin-left
margin-right
display-value
ean128`