Skip to content

QR Code

The fundamental theorem must certainly be regarded as one of the most elegant of its type.

Example

COMMENT

You need to install qrcode yourself.

Show Code
vue
<script lang="ts" setup>
import qrcode from 'qrcode'
import { RInput, RQRCode, RSpace } from 'roughness'
import { computed, ref } from 'vue'

const text = ref('Disquisitiones Arithmeticae')

const data = computed(() => {
  const { modules } = qrcode.create(text.value)
  return modules
})
</script>

<template>
  <RSpace vertical>
    <RQRCode :data="data" />
    <RInput v-model="text" />
  </RSpace>
</template>

Usage

Props

Styles

Released under the ISC License.