Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/binsarjr/svelte-qrcode-action


https://github.com/binsarjr/svelte-qrcode-action

hacktoberfest qr qrcode svelte svelte-qrcode

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# svelte-qrcode-action

I have just converted https://github.com/kozakdenys/qr-code-styling to a Svelte action and added support for reactivity.

You can find the options API documentation for [kozakdenys/qr-code-styling](https://github.com/kozakdenys/qr-code-styling#api-documentation)here

# Example

Simple

```svelte

import { qrcode } from 'svelte-qrcode-action';


```

With reactive

```svelte

import { qrcode } from 'svelte-qrcode-action';
import { onMount } from 'svelte';

let options = {
data: 'qr content'
};
onMount(() => {
setTimeout(() => {
options.dotsOptions = {
color: '#4267b2',
type: 'rounded'
};
}, 2_000);
});


```

# Contributing
need better documentation