Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pablohirafuji/elm-qrcode

QR Code in Elm
https://github.com/pablohirafuji/elm-qrcode

elm qrcode

Last synced: about 1 month ago
JSON representation

QR Code in Elm

Awesome Lists containing this project

README

        

# QR Code

QR Code encoding and rendering. [Demo](https://pablohirafuji.github.io/elm-qrcode/).

## Basic Usage

```elm
import Html exposing (Html)
import QRCode
import Svg.Attributes as SvgA

qrCodeView : String -> Html msg
qrCodeView message =
QRCode.fromString message
|> Result.map
(QRCode.toSvg
[ SvgA.width "100px"
, SvgA.height "100px"
]
)
|> Result.withDefault (Html.text "Error while encoding to QRCode.")

```

If you would like more functionalities, please open an issue on [GitHub](https://github.com/pablohirafuji/elm-qrcode/issues).

## Thanks

Thank you Carolyn Eby, for creating [this great tutorial](http://www.thonky.com/qr-code-tutorial/) on how QR Code works.

Thank you Evan for bringing joy to the frontend.