An Ember addon that draws QR codes.
Install the addon with ember install ember-qrcode
.
To place a QR code element (by default a canvas.qr-code
), use the {{qr-code}}
component.
The component has the following properties:
data
: the data string to encodewidth
,height
: passed directly to thecanvas
attributes with the same namelight
,dark
: the hex colours for light and dark cells respectively (#FFFFFF
and#000000
by default)
{{qr-code data="Hello world" light="#EEEEFF" dark="#330000"}}
The MIT licence