NOTE: this package is not compatible with Elm 0.19.1
QR Code encoder and renderer.
Transform a string into a result Error or a QR Code svg element using ECLevel.Q (25% of codewords can be restored).
ECLevel.Q
qrCode : Html msg qrCode = let resultQRCode = toSvg "Hello world" in case resultQRCode of Result.Ok view -> view Result.Err err -> Html.text (toString err)
Tip: You can determine the size of the generated svg setting width and height styles.
width
height
Transform a string with a given EClevel into a result Error or a QR Code svg element.
Transform a string into a result Error or a QR Code svg element using
ECLevel.Q(25% of codewords can be restored).Tip: You can determine the size of the generated svg setting
widthandheightstyles.