@kiliannnnn/qrify
v1.1.0
Published
A simple qr-code generator as a custom HTML component
Downloads
52
Maintainers
Readme
QRify
A simple qr-code generator that comes as a custom HTML component
Do not use versions before 1.1
Attributes
- string (required) : The string to traduce
- dot-color (optionnal) : Any format handled by HTML such as 'black' or '#000' : default to black
- corner-color (optionnal) : Any format handled by HTML such as 'black' or '#000' : default to black
- canvasClass (optionnal) : give class to the canvas element generated
- canvasStyle (optionnal) : give style to the canvas element generated
Usage
- Import the script
import '@kiliannnnn/qrify';
- Use the new tag
<qr-code string="https://www.youtube.com/watch?v=dQw4w9WgXcQ&ab_channel=RickAstley" dot-color="#999" corner-color="#999" canvasClass="round-lg" canvasStyle="padding: 10px;"></qr-code>