Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vanilla-icecream/vue-qrcode-image

A Vue component for QR code generation.
https://github.com/vanilla-icecream/vue-qrcode-image

qrcode vue

Last synced: about 2 months ago
JSON representation

A Vue component for QR code generation.

Awesome Lists containing this project

README

        

# vue-qrcode-image

A Vue component for QR code generation.

## Installation

Install `vue-qrcode-image` with your favorite package manager:

```sh
$ npm i vue-qrcode-image
# or
$ yarn add vue-qrcode-image
# or
$ pnpm i vue-qrcode-image
# or
$ bun add vue-qrcode-image
```

## Usage

### Basic

```vue

import { ref } from 'vue';
import QrcodeImage from 'vue-qrcode-image';

const qrcode = ref('https://www.npmjs.com/search?q=vue-qrcode-image');

```

### Size

- Type: `number`
- Default: `6`

```html

```

### Margin

- Type: `number`
- Default: `24`

```html

```

### Foreground

- Type: `[R: number, G: number, B: number]`
- Default: `[0, 0, 0]`

```html

```

### Background

- Type: `[R: number, G: number, B: number]`
- Default: `[255, 255, 255]`

```html

```